How do I specify the library path, i.e., where to look up static/shared libraries in Visual Studio Code (C++)?
I've already specified the include path (header files) as follows:
"includePath": [
"${workspaceRoot}",
"/usr/include/x86_64-linux-gnu/c++/6",
"/usr/include/c++/6",
"/usr/local/include",
"/usr/include/x86_64-linux-gnu",
"/usr/include"
]
I've been searching for a JSON property called "libraryPath", but cannot find any.
The vscode requires a include path to highlight or resolve c++ symbols, but it doesn't need to know where lib is stored.
I wonder if you have any trouble at compile time? In that case, you need to set up your compilation system (such as CMake). :)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With