-
-
Notifications
You must be signed in to change notification settings - Fork 795
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
subdirectories in /src - linker errors #190
Comments
Could I ask you to provide PlatformIO-based project where I can reproduce this issue? Thanks in advance! |
Ok, after testing on simplified code, the problem seems to be that |
Could you provide real example and pack it to archive? I will look on it. Thanks, |
yes, I just tried to upload here, but github doesn't like it, so I emailed you a tarball instead. |
Thanks a lot! I've just fixed it. Please install the latest development version http://docs.platformio.org/en/latest/installation.html#development-version I will release new 1.5.0 in the next week. |
Thanks Ivan! Brilliant work! |
My project (on arduino) is structured in modules like:
in file1.h, I have
#include "shared/debug.h"
which worked until platformio auto-upgraded to 1.4.0 (not sure from which version it upgraded, I haven't run it in about a month), and I'm now getting a linker error when compiling:(
debug_func
is inshared/debug.h
)I tried tweaking
build_flags
inplatformio.ini
but unless I use absolute paths in the -L and -I options, a "script" prefix is added, so either it doesn't work, or it's not portable.What happened during the upgrade that broke my project? I don't want to flatten my file structure, is there a proper way to fix platformio.ini for this?
The text was updated successfully, but these errors were encountered: