我试图在makefile中包含额外库的路径,但我无法弄清楚如何让编译器使用该路径.到目前为止我有:
g++ -g -Wall testing.cpp fileparameters.cpp main.cpp -o test
Run Code Online (Sandbox Code Playgroud)
我想要包括路径
/data[...]/lib
Run Code Online (Sandbox Code Playgroud)
因为testing.cpp包含来自该库的文件.另外,我在linux机器上.
编辑:不是图书馆的路径.只是包含的文件.我的错.