karlbaker
Posts: 13 Joined: 03 Mar 2019 12:04
Post
by karlbaker » 13 Mar 2020 23:15
What is the compiler trying to tell me with this error message?
Code: Select all
error: uCxx:Can't find method __cxx__ZUNO_TSL2591__init01rZUNO_TSL2591 for object tsl of class ZUNO_TSL2591
I have created the class for the lumina sensor and am not understanding what the compiler is trying to tell me.
Thanks,
Karl Baker
PoltoS
Posts: 7565 Joined: 26 Jan 2011 19:36
Post
by PoltoS » 15 Mar 2020 05:31
Please show the code
karlbaker
Posts: 13 Joined: 03 Mar 2019 12:04
Post
by karlbaker » 16 Mar 2020 18:44
Hi PoltoS,
Please see attached adapted files.
I'm probably missing something very basic to C++ development, and don't have enough experience to catch what needs to be done.
Thanks,
Karl
Attachments
ZUNO_TSL2591 - Adapted.zip
(10.78 KiB) Downloaded 291 times
PoltoS
Posts: 7565 Joined: 26 Jan 2011 19:36
Post
by PoltoS » 17 Mar 2020 11:40
The code looks too complex. Please look on BMP280 and BH1850 libraries to see how it should look like. Too complex C++ code is not well supported - especially nested structures and unions.
The code should be minimized to shortness the stack footprint and simplify the code itself