|
我的系统是debian,安装了boost库(1.32.0-6),把boost::filesystem的测试例
子拷下来编译,没有通过。
使用gcc编译: gcc-3.4 main.cc
出现很多类似下面的错误:
/tmp/ccxKjS2P.o(.text+0x129):In function `main':
: undefined reference to `boost::filesystem::initial_path()'
试验过boost::array, boost::timer的测试例子,都能编译通过,这是为什么呀?
怎么解决呢?
boost是以debian包的方式安装的,boost::filesystem也装了。 |
|