Errors when compiling with dev branch

Related to the development libraries, released by Curt Binder

Posts: 100
Joined: Mon Sep 17, 2012 12:41 pm
Location: Lincoln Park, Chicago, IL, USA 60614
PostPosted: Fri Nov 23, 2018 10:58 pm
I have tried pulling down the dev branch, and I am seeing the following compiler errors, which prevent me from even attempting an upload:

In file included from sketch_nov23a.cpp:31:
/Users/sbidny/Documents/Arduino/libraries/ReefAngel/ReefAngel.h:305: error: a brace-enclosed initializer is not allowed here before '{' token
/Users/sbidny/Documents/Arduino/libraries/ReefAngel/ReefAngel.h:368: error: ISO C++ forbids initialization of member 'ParamArrayByte'
/Users/sbidny/Documents/Arduino/libraries/ReefAngel/ReefAngel.h:368: error: making 'ParamArrayByte' static
/Users/sbidny/Documents/Arduino/libraries/ReefAngel/ReefAngel.h:368: error: invalid in-class initialization of static data member of non-integral type 'unsigned char* [94]'
/Users/sbidny/Documents/Arduino/libraries/ReefAngel/ReefAngel.h:370: error: a brace-enclosed initializer is not allowed here before '{' token
/Users/sbidny/Documents/Arduino/libraries/ReefAngel/ReefAngel.h:401: error: ISO C++ forbids initialization of member 'ParamArrayInt'
/Users/sbidny/Documents/Arduino/libraries/ReefAngel/ReefAngel.h:401: error: making 'ParamArrayInt' static
/Users/sbidny/Documents/Arduino/libraries/ReefAngel/ReefAngel.h:401: error: invalid in-class initialization of static data member of non-integral type 'int* [19]'

Posts: 12445
Joined: Fri Mar 18, 2011 6:47 pm
PostPosted: Fri Nov 23, 2018 10:59 pm
Sorry, is this for the web wizard or you are trying to use the Arduino IDE?
Roberto.

Posts: 100
Joined: Mon Sep 17, 2012 12:41 pm
Location: Lincoln Park, Chicago, IL, USA 60614
PostPosted: Fri Nov 23, 2018 11:01 pm
The IDE. Trying to use cloud WiFi and upload using the Bluetooth adapter via the IDE.

Posts: 12445
Joined: Fri Mar 18, 2011 6:47 pm
PostPosted: Fri Nov 23, 2018 11:11 pm
You may need to use the new Arduino IDE.
I can't remember if the old one compiles dev branch.
viewtopic.php?f=7&t=6790
Roberto.

Posts: 100
Joined: Mon Sep 17, 2012 12:41 pm
Location: Lincoln Park, Chicago, IL, USA 60614
PostPosted: Fri Nov 23, 2018 11:13 pm
It seems you may have broken this out from the original thread. Not sure it’s going to make as much sense without the original context.

Some of us are trying to use cloud WiFi but still want to upload using the Bluetooth adapter. The web wizard doesn’t support the Bluetooth adapter. And the IDE doesn’t support cloud WiFi, due to older libraries.

Therefore, someone suggested we pull down the dev branch (which is what the web wizard is using for whatever reason) into the IDE and then use the Bluetooth adapter. That’s when I saw the compiler errors.

Posts: 100
Joined: Mon Sep 17, 2012 12:41 pm
Location: Lincoln Park, Chicago, IL, USA 60614
PostPosted: Fri Nov 23, 2018 11:13 pm
I’ll give that a shot...

Posts: 100
Joined: Mon Sep 17, 2012 12:41 pm
Location: Lincoln Park, Chicago, IL, USA 60614
PostPosted: Sat Nov 24, 2018 10:10 pm
And now, after using IDE 1.8.6, I'm getting...

/var/folders/3m/3bb43tld2fj36jzpj5p4ry780000gs/T//cc1YIvJ2.ltrans2.ltrans.o: In function `main':
cc1YIvJ2.ltrans2.o:(.text.startup+0xef4): undefined reference to `ReefAngelClass::CloudPortal()'
collect2: error: ld returned 1 exit status
exit status 1
Error compiling for board Reef Angel Plus Controller.

Posts: 12445
Joined: Fri Mar 18, 2011 6:47 pm
PostPosted: Sat Nov 24, 2018 10:17 pm
Are you sure you are using the dev branch and it is placed in the correct place?
https://github.com/reefangel/Libraries/archive/dev.zip
This path is very strange: /var/folders/3m/3bb43tld2fj36jzpj5p4ry780000gs/T//cc1YIvJ2.ltrans2.ltrans.o:
Looks like a linux machine.
Roberto.

Posts: 100
Joined: Mon Sep 17, 2012 12:41 pm
Location: Lincoln Park, Chicago, IL, USA 60614
PostPosted: Sat Nov 24, 2018 10:52 pm
OS X. I believe I am using the latest dev branch and have placed it in the correct location. Will try again.

Posts: 100
Joined: Mon Sep 17, 2012 12:41 pm
Location: Lincoln Park, Chicago, IL, USA 60614
PostPosted: Sun Nov 25, 2018 3:42 pm
No luck. If I remove the line ReefAngel.CloudPortal(); from the function void loop() it compiles.
Next

Return to Development Libraries

Who is online

Users browsing this forum: No registered users and 1 guest

cron