Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Specify library path in Visual Studio Code?

Tags:

c++

ide

ubuntu

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.

like image 652
Shuzheng Avatar asked Jul 14 '17 10:07

Shuzheng


1 Answers

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). :)

like image 74
gary133 Avatar answered Oct 01 '22 08:10

gary133