如何在Eclipse中添加链接器后包含库头

时间:2017-02-20 16:06:11

标签: c++ eclipse c++11 gcc trie

我正在尝试从Github(https://github.com/dcjones/hat-trie)中包含一个库。

安装工作正常,我能够添加库 to the linker in Eclipse

但问题是我不知道如何使用它。

我已将其添加为标题

 #include <hat-trie.h>  

但它发出此错误:

18:49:31 **** Incremental Build of configuration Debug for project test2 ****
make all 
Building file: ../src/test2.cpp
Invoking: GCC C++ Compiler
g++ -std=c++1y -std=c++11 -I/home/use1/boost_1_58_0 -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"src/test2.d" -MT"src/test2.d" -o "src/test2.o" "../src/test2.cpp"
**../src/test2.cpp:28:22: fatal error: hat-trie.h: No such file or directory
 #include <hat-trie.h>**
                      ^
compilation terminated.
make: *** [src/test2.o] Error 1

18:49:33 Build Finished (took 2s.831ms)

任何想法我该如何解决这个问题?

0 个答案:

没有答案