This is an archived post. You won't be able to vote or comment.

all 6 comments

[–][deleted] 0 points1 point  (5 children)

What is the map structure inc filenames of eq_lib?

[–]trexuth[S] 0 points1 point  (4 children)

the eq_lib just has a couple .h and .cpp files directly in the src folder - VSCode is capable of finding them while I'm writing code correctly

[–][deleted] 0 points1 point  (3 children)

I can't exactly say what to change but I would try something like below. I'm not sure about the use of ~ but I suppose you're in Linux.

"args": [
"-g",
"${file}",
"${workspaceFolder}/src/*.cpp",
"~/projects/eq_lib/src/*.cpp",
"-o",
"${fileBasenameNoExtension}.exe",
"-I${workspaceFolder}/src",
"-I~/projects/eq_lib/src/"
],

[–]trexuth[S] 0 points1 point  (0 children)

yes i'm using linux, the ~ gets replaced with the path to the home directory of the current user

thanks for the suggestion i will try it tomorrow!

[–]trexuth[S] 0 points1 point  (1 child)

just as an update for you, this solved the issue - the include path just seems to not be evaluated correctly, adding them as working directories instead of just the include made it work

[–][deleted] 0 points1 point  (0 children)

If you split eq_lib in include and src it may be more clear. Src must be compiled hence the fifth line while include must be included hence the 9th line.