-
-
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
No custom include path in compiler command line #271
Comments
This is also an issue on windows. I build a default project with SublimeText which creates a src and lib directory but the lib directory is not put in the path. So I tried adding it to the config file and can't figure out any way to do it on Windows 7, with platformio 2.2.2. Here are the various things I tried and what I see on the compiler line: Input: src_build_flags = -Ic:/Users/foo/project/lib Input: src_build_flags = -I/Users/foo/project/lib Input: src_build_flags = -I../lib Is there any work around? This is pretty crippling at this point. |
@TD22057 PlatformIO automatically handles libraries from As for this issue - I'll work on it. Sorry for the troubles 😢 |
Thanks. Off topic: I was hoping to not have a flat library (lib/LIB_NAME/SOURCE) structure and use platformio. There are way too many libraries with the same names so I was hoping to have lib/DIR/LIB_NAME/SOURCE and then say "#include "DIR/LIB_NAME/File.h" in my code. Of course I'm coming from a regular C++ dev background so perhaps that's the wrong way to think about Arduino... |
@TD22057 PlatformIO looks for source code of libraries in #include <LIB_NAME/File.h>
Please report me if you still have problems. |
Please re-test the latest PlatformIO 2.3.6.dev3 http://docs.platformio.org/en/latest/installation.html#development-version |
If add to src_build any -I directive containing relative path, then platformio parser just throw it away.
Example:
src_build = -I/home/user/include
- work, if dir existsrc_build = -I.
- don't workThe text was updated successfully, but these errors were encountered: