我想在eclipse中添加一个外部库,这是我如何进行的:
Projet/Properties/C++ Build/Gcc Linkers/libraries/,
-l /home/Jackie/CodingPackages/SB5/Src/GLTools/include/ and
-L /home/Jackie/CodingPackages/SB5/Src/GLTools/src/
这是我得到的错误:
make all
Building target: Chap1
Invoking: GCC C++ Linker
g++ -L/home/prince/CodingPackages/SB5/Src/GLTools/src/ -o"Chap1" ./main.o -lglut -l/home/Jackie/CodingPackages/SB5/Src/GLTools/include/ -lGLU -lGL
/usr/bin/ld: fatal error: /home/Jackie/CodingPackages/SB5/Src/GLTools/include/: mmap offset 0 size 4096 failed: No such device
collect2: ld returned 1 exit status
答案 0 :(得分:0)
包含目录使用-I
(大写i)