Go Down

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


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




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.


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