Skip to content
This repository has been archived by the owner on Aug 27, 2021. It is now read-only.

Function not declared. #16

Closed
fabiankr opened this issue Jan 15, 2012 · 3 comments
Closed

Function not declared. #16

fabiankr opened this issue Jan 15, 2012 · 3 comments
Assignees

Comments

@fabiankr
Copy link

Hi,

When you try to compile the "BarometricPressureWebServer" example, compilation fails, because the functions declared at the bottom of the file are not found in the main() and setup() functions.
The official IDE adds function prototypes at the top of the file, right under #include "Arduino.h", so this error does not occur.

Fabian

@ghost ghost assigned nkrkv Jan 15, 2012
@rei-vilo
Copy link

An interim solution would consist on declaring prototypes for all functions on the sketch, as .h headers do for .cpp libraries.

@fabiankr
Copy link
Author

I'm doing the preprocessing before passing the files to Ino now, but I think it'd be nice to have it right in Ino itself. Regexes can be found in the official IDE: https://github.com/arduino/Arduino/blob/master/app/src/processing/app/preproc/PdePreprocessor.java

@rei-vilo
Copy link

I agree with you!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants