Go Down

Topic: Arduino on Xcode Project — Official Thread (Read 403768 times) previous topic - next topic

Eebel

That fixed the build error.  Thanks.  Is this normal behavior in embedXCode?

Thanks,

Tim

sslupsky

Yes, as I understand embedXCode, it performs a "make" style build which follows all the standard C and C++ conventions.  The declaration before use is required for C and C++.  The forward declaration satisfies this by providing the information the compiler requires to understand the function call properly.

The Arduino IDE gets around this by scanning the sketch and deriving a set of prototypes and then it inserts them into the code before it is compiled.

avenue33

For a comparaison between the standard Arduino IDE and embedXcode, please refer to Manage compatibility with standard IDEs of the embedXcode User Manual.

Go Up