Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

Plus has errors compiling
#5

(11-01-2017, 20:39)Werk_AG Wrote:  It seems that 1.8.0 introduced some unexpected problems than just the problem with the "Time" library.
I think it's because of the way Arduino code gets 'massaged' into acceptable C/C++ by the IDE, creating any missing function prototypes. I guess  this has changed to not generate prototypes when functions are excluded by the preprocessor. Either that or a bug in the way these prototypes are now generated.
The following code won't compile in 1.8.0 - I'll see if it does in 1.6.x

Code:
#ifdef WIBBLE
void foo()
{
}
#endif

void setup() {
  foo();
}

void loop() {
}

Updated : This won't compile in 1.6 either. Maybe you're not seeing problems because your build has a different config file?

Oh - and I see 1.8.1 is here now Wink
Reply


Messages In This Thread
Plus has errors compiling - by markkkk42 - 11-01-2017, 08:40
RE: Plus has errors compiling - by roddyp - 11-01-2017, 12:27
RE: Plus has errors compiling - by werk_ag - 11-01-2017, 20:39
RE: Plus has errors compiling - by roddyp - 11-01-2017, 22:42
RE: Plus has errors compiling - by werk_ag - 11-01-2017, 22:49
RE: Plus has errors compiling - by werk_ag - 12-01-2017, 00:19
RE: Plus has errors compiling - by werk_ag - 11-01-2017, 20:32
RE: Plus has errors compiling - by markkkk42 - 12-01-2017, 05:06
RE: Plus has errors compiling - by markkkk42 - 12-01-2017, 05:46
RE: Plus has errors compiling - by markkkk42 - 12-01-2017, 05:52
RE: Plus has errors compiling - by roddyp - 12-01-2017, 10:43
RE: Plus has errors compiling - by werk_ag - 12-01-2017, 18:39
RE: Plus has errors compiling - by markkkk42 - 12-01-2017, 11:05
RE: Plus has errors compiling - by markkkk42 - 12-01-2017, 11:08
RE: Plus has errors compiling - by roddyp - 12-01-2017, 11:22
RE: Plus has errors compiling - by werk_ag - 12-01-2017, 18:08
RE: Plus has errors compiling - by roddyp - 12-01-2017, 20:29
RE: Plus has errors compiling - by werk_ag - 12-01-2017, 23:10
RE: Plus has errors compiling - by markkkk42 - 13-01-2017, 08:15
RE: Plus has errors compiling - by werk_ag - 14-01-2017, 01:27



Users browsing this thread: 1 Guest(s)