我试图在Ubuntu上包含boost来构建C ++项目。 g ++版本为4.8.1,boost版本为1.57.0。我跟着these instructions使用了boost(仅限标题库)。我将boost库放入〜/ opt / lib,当我尝试编译项目时,我得到以下错误输出:
15:19:47 **** Incremental Build of configuration Debug for project TEST ****
make all
Building file: ../src/test.cpp
Invoking: GCC C++ Compiler
g++ -include/home/alexander/opt/lib/boost_1_57_0 -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"src/test.d" -MT"src/test.d" -o "src/test.o" "../src/test.cpp"
In file included from <command-line>:0:0:
/usr/include/stdc-predef.h:39:1: fatal error: /home/alexander/opt/lib/boost_1_57_0: No such file or directory
#endif
^
compilation terminated.
make: *** [src/test.o] Error 1
15:19:48 Build Finished (took 1s.31ms)
我做错了什么?