Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multi-file arduino project does not build #730

Closed
saschaludwig opened this issue Jul 26, 2016 · 4 comments
Closed

Multi-file arduino project does not build #730

saschaludwig opened this issue Jul 26, 2016 · 4 comments
Assignees
Labels
Milestone

Comments

@saschaludwig
Copy link

Here is a multi-file project which has problems building in platformio ide 1.3.6 cli 2.11.1:
https://github.com/ESP8266nu/ESPEasy

I get quite a number of errors like this:
/Users/sl/ownCloud/Arduino/ESPEasy/src/_P006_BMP085.ino:54:39: error: 'Plugin_006_bmp085_begin' was not declared in this scope

Could it be there is a problem with underscores in the .ino filenames?
How could this be fixed?

Thanks, Sascha

@palfrey
Copy link

palfrey commented Jul 30, 2016

You need to declare functions in C before you use them, or in this particular case, re-order the functions so that you start with functions in a file that don't need any of your other ones, then the ones that only need the ones you've declared so far, and so on.

http://stackoverflow.com/questions/14307087/whats-wrong-with-this-arduino-code has a good example of the type of thing.

@ivankravets
Copy link
Member

PlatformIO Build System has own INO to CPP auto converter. See

It looks like it doesn't convert code very well. I'll look on it later.

@ivankravets ivankravets self-assigned this Sep 1, 2016
@ivankravets ivankravets added this to the 3.0.0 milestone Sep 1, 2016
@ivankravets
Copy link
Member

Please re-test with PlatformIO 3.0 http://docs.platformio.org/en/stable/installation.html#development-version

@saschaludwig
Copy link
Author

Tested with PlatformIO 3.0: code does compile now.
Thank you very much! Awesome work

ivankravets added a commit that referenced this issue Sep 9, 2016
* develop:
  Fix incorrect line order when converting from INO to CPP and pointer is used
  Fix unit test
  Notify about `version` field when creating library
  Add support for SparkFun Blynk Board
  Return valid exit code from ``plaformio test`` command
  Disable SSL Server-Name-Indication for Python < 2.7.9
  Version bump to 3.0.1 (issue #772)
  Disable temporary SSL for PlatformIO services // Resolve #772
  Version bump to 3.0.0 (issues #770, #766, #747, #730, #765, #640, #659, #742, #459, #542, #763, #759, #753, #757, #749, #748, #745, #519, #709, #743, #413, #498, #410, #740, #361, #414, #554, #732, #588, #475, #461, #101, #719, #721, #537, #415, #522, #289, #556, #570, #456, #617, #432, #408, #479, #667, #510)
  Fix menu height for  docs
  Fix issue with multiple archives when linking firmware
  Add migration guide for PIO2 to PIO3
  Search libraries by headers/includes with ``platformio lib search --header`` option
  Update pio run command examples
  Add Unit Testing Demo
  Update PIO Plus badge title and link
  Add PlatformIO Plus badge
  Add links to PlatformIO Plus
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants