subfolder of lib mustn't be named *config*
See original GitHub issue- PlatformIO Core. If you’ve found a bug, please provide an information below.
You can erase any parts of this template not applicable to your Issue.
Configuration
Ubuntu 17.04 system:
3.6.2a2
I have the following folder structure, and everything is working fine.
|-- Projectfolder
|-- include
|-- README
|-- lib
|-- lib1
|-- src
|-- lib1.h
|-- lib1.cpp
|-- lib2
|-- src
|-- lib2.h
|-- lib2.cpp
|-- src
|-- main.cpp
|-- platformio.ini
code of lib1.h:
void func1();
code of lib1.cpp:
void func1(){
//doanythinghere
}
code of lib2.h:
void func2();
code of lib2.cpp:
#include <lib1.h>
void func2(){
func1();
}
code of main.cpp
#include <lib2.h>
void setup(){
}
void loop(){
func2();
}
BUT: As soon I am renaming
lib1 -> config
lib1.h -> config.h
lib1.cpp -> config.cpp
I get an Compile Error: lib/lib2/src/lib2.cpp:4:11: error: ‘func1’ was not declared in this scope
If for any reason this is not a bug but a feature, it should be mentioned in the Readme, i spent almost a day on finding out that the problem is the name of the lib…
The content of platformio.ini
:
[env:featheresp32]
platform = espressif32
board = featheresp32
framework = arduino
Issue Analytics
- State:
- Created 5 years ago
- Comments:11 (5 by maintainers)
Top Results From Across the Web
NuGet reference specification with an assembly not in lib ...
Whatever I try, I am getting the error: Invalid assembly reference 'utils.dll'. Ensure that a file named 'utils.dll' exists in the lib directory ......
Read more >automatically create flow for new user folder structure
I have setup a flow to copy folders from a library to another library when a new item is created but I need...
Read more >Stanza Reference - Dune documentation - Read the Docs
It determines the names of the archive files generated for the library as well as the module name under which the library will...
Read more >subfolder-evolutions - Scaladex
Each library should place evolutions scripts in folder evolutions/<db-name>/<subfolder-name> instead of place directly in evolutions/<db-name> as in the ...
Read more >Monorepo Setup with NPM and TypeScript - In Plain English
This demo project will be named “SuzieQ”. # Create new empty folder mkdir monorepodemo cd monorepodemo # Create subdirectories mkdir src ./ ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
That fixed it for me, thanks for the quick turnaround!
after upgrading everything works as expected, thanks!