-->
Page 1 of 1

Arduino 1.6.7 Forward declarations

PostPosted: Wed Apr 13, 2016 1:18 pm
by danbicks
Guys,

Moving to Arduino IDE 1.6.7 is a real pain. If as many of us would have created sub tabs with routines in which work perfectly fine in 1.6.5 they do not get declared unless a forward declaration for a subroutine name is defined in the global space.

Example

Program has 2 Ino files. Main.ino and NTP.ino

NTP.ino has a function lets say called NTP_Active() which returns bool as a return if NTP has been synced.

Now in the Main.ino file we have to declare in the global scope a forward declaration for this subroutine.
e.g:

Global Scope above setup in Main.ino

bool NTP_Active(); // forward declaration here


Void Setup()
{

}


Is there any alternative method without having to re define every single function in the global scope? What a real pain this is!

Look forward to your findings and feedback.

Dans

Re: Arduino 1.6.7 Forward declarations

PostPosted: Wed Apr 13, 2016 4:36 pm
by xtal
I moved to 1.6.8 which seems to be as good as 1.6.5 for what I'm doing.....