Skip to content

How to add an include path to a vscode project? #10088

Discussion options

You must be logged in to vote

I added it to the tasks.json
The red squiggles are gone from main.cpp
It still fails, but now for a slightly different error:
C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\PEL6FH\AppData\Local\Temp\ccrYS7OC.o:C:/Users/PEL6FH/Desktop/temp/MSVSC_hell/src/main.cpp:5: undefined reference to `sayHello()'
collect2.exe: error: ld returned 1 exit status

And the program started acting really strange. Mouseclicks are not being registered. Only one file can be open in the editor now, if I try to open a new one it closes the current one/tab and opens the new one in its place.

Replies: 2 comments 17 replies

Comment options

You must be logged in to vote
12 replies
@datascribbler777
Comment options

@bobbrow
Comment options

@datascribbler777
Comment options

@datascribbler777
Comment options

@bobbrow
Comment options

Comment options

You must be logged in to vote
5 replies
@bobbrow
Comment options

@bobbrow
Comment options

@datascribbler777
Comment options

@datascribbler777
Comment options

@bobbrow
Comment options

Answer selected by bobbrow
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants