Visual c++/add library path

I am trying to add the <Magick++.h> library by adding another path to the properties aconfiguration adn I am getting an error

"includePath": [
["${workspaceFolder}/**","C:/Program Files/mingw-w64/x86_64-8.1.0-posix-seh-rt_v6-rev0/mingw64/x86_64-w64-mingw32/include"]

error: incorrect type, expected string
I don't use visual studio, but this correct (with the two asterisks?)
 
"${workspaceFolder}/**"
i didnt add this, it was there fromt eh beggining
What MSVC++ version are you using? What is your OS?

With the recent Visual Studio versions (2015, 2017, 2019) any location macros have been something like $(IncludePath) that evaluate to specific directory locations.

MSC++ uses an MS compiler, not MinGW. Is this Visual Studio Code?
Yes I am using Visual Studio Code, but I am new to all this, i have added the path using the setting.json and "C_Cpp.default.includePath" but now I am getting something else.
When I try to build it, it doesn't give me the compiler option and i get multiple lines of "undefined reference" of the Magick++ library
I get this at the end "collect2.exe: error: ld returned 1 exit status", but I am new and I have now idea how to fix it

Last edited on
Topic archived. No new replies allowed.