question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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:closed
  • Created 5 years ago
  • Comments:11 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
nstiurcacommented, Mar 25, 2019

That fixed it for me, thanks for the quick turnaround!

1reaction
atsteichcommented, Nov 19, 2018

after upgrading everything works as expected, thanks!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found