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

Error building multiple .pde files. #235

Open
Norsak opened this issue Feb 24, 2015 · 0 comments
Open

Error building multiple .pde files. #235

Norsak opened this issue Feb 24, 2015 · 0 comments

Comments

@Norsak
Copy link

Norsak commented Feb 24, 2015

The way I understand .pde files is:
They get concatenated in alphabetical order, then compiled. (not pre-compiled)
https://arduinodilettante.wordpress.com/2011/03/10/multiple-file-sketches/

I currently get an error from _ino build_
src/z_loop.pde: In function ‘void setup()’:
src/z_loop.pde:4:17: error: ‘setup_NeoPixel’ was not declared in this scope

I my scenario there are 2 files in the src/ folder:

a_NeoPixel.pde
z_loop.pde

The function _setup_NeoPixel()_ is declared in the file _a_NeoPixel.pde_
But when i try and call it in _z_loop.pde_ ino reports the above error.

The same code works in the Windows Arduino IDE (using 2 .pde files in the same folder, which show as 2 tabs in the IDE)

What do I need to do differently in ino to make this work?

@Norsak Norsak changed the title How do I compile multiple .pde files? Error building multiple .pde files. Feb 24, 2015
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

1 participant