-
Notifications
You must be signed in to change notification settings - Fork 236
Source subfolder and linking problem #763
Comments
I figured it out. To avoid a Wisdom of the Ages situation. This has nothing to do with Rearranging my folder tree so it looks like:
Causes the sub folders to be properly included and compiled. Morale of the story: your sketch must be in the root of the project, and any other files to compile must within the |
I recently began working on someone else's code, and it took me an entire day to figure out all those linker errors were due to THIS. Shouldn't this be mentioned in the extension's instructions?? |
Hi @maikeriva The rule here is: If something doesn't compile: If it doesn't compile with the Arduino IDE it's a problem with your project. If your project compiles with the Arduino IDE but not with vscode-arduino: You can file an issue here. |
BTW: you can help improving the documentation by writing a section for the documentation and file a pull request! |
I'm trying to reorganize my project with subfolders, but I can't seem to get the linker to find the
cpp
sources once they're moved. The extension seems to magically findcpp
files next to the mainino
and compile them properly, how do I configure this?I want to go from this (working structure):
To this structure:
This is my
c_cpp_properties.json
file.Note, its unclear if
${workspaceFolder}
or${workspaceRoot}
should be used anymore.Apologies if this is actually a
vscode-cpptools
question, its kind of tricky to tell where one ends and the other begins sometimes.The text was updated successfully, but these errors were encountered: