Page 1 of 1

Error compiling fresh dev branch

Posted: Sat Feb 04, 2017 12:35 pm
by AlanM
I used github client to grab the latest dev branch from the libraries and put it into the libraries directory of the Arduino directory in Documents.

Then I tried compiling my new .ino file to support my new tank and got the following. Any suggestions? It looks like it doesn't like the header file.

Code: Select all

In file included from ReefAngelSetupAlanM180.cpp:31:
C:\Users\Alan\Documents\Arduino\libraries\ReefAngel/ReefAngel.h:301: error: a brace-enclosed initializer is not allowed here before '{' token
C:\Users\Alan\Documents\Arduino\libraries\ReefAngel/ReefAngel.h:364: error: ISO C++ forbids initialization of member 'ParamArrayByte'
C:\Users\Alan\Documents\Arduino\libraries\ReefAngel/ReefAngel.h:364: error: making 'ParamArrayByte' static
C:\Users\Alan\Documents\Arduino\libraries\ReefAngel/ReefAngel.h:364: error: invalid in-class initialization of static data member of non-integral type 'byte* [94]'
C:\Users\Alan\Documents\Arduino\libraries\ReefAngel/ReefAngel.h:366: error: a brace-enclosed initializer is not allowed here before '{' token
C:\Users\Alan\Documents\Arduino\libraries\ReefAngel/ReefAngel.h:392: error: ISO C++ forbids initialization of member 'ParamArrayInt'
C:\Users\Alan\Documents\Arduino\libraries\ReefAngel/ReefAngel.h:392: error: making 'ParamArrayInt' static
C:\Users\Alan\Documents\Arduino\libraries\ReefAngel/ReefAngel.h:392: error: invalid in-class initialization of static data member of non-integral type 'int* [16]'

Re: Error compiling fresh dev branch

Posted: Sat Feb 04, 2017 9:43 pm
by rimai
I think you need to use the new IDE.
http://forum.reefangel.com/viewtopic.php?f=7&t=5993
Then download again the libraries because I think they will be overwritten.

Re: Error compiling fresh dev branch

Posted: Sat Feb 04, 2017 9:43 pm
by rimai
Or use the webwizard, which has the latest dev branch.
http://forum.reefangel.com/viewtopic.php?f=8&t=6199

Re: Error compiling fresh dev branch

Posted: Sun Feb 05, 2017 6:01 am
by AlanM
Awesome. I'm away for a while and so many things change. Thanks for the pointer.