关于Boost库的问题
颖哥儿 2013-04-25 09:16:43 下午花了俩小时,编译完boost(1.49)库,折腾了一晚上也没折腾好。
由于是64bit机器,将boost编译成了64bit(不知道是否应该保持默认的32bit),然后将路径(include和lib)都添加好,在include的时候也能顺利找到头文件,但是运行的时候问题来了,比如使用
#include<boost/timer.hpp>
#include<iostream>
int main(void)
{
timer t;
return 0;
}
在x64 debug下提示:fatal error C1083: Cannot open include file: 'boost/timer.hpp': No such file or directory;
在x64 release下提示:fatal error C1083: Cannot open include file: 'boost/timer.hpp': No such file or directory;
然后又尝试了
在Win32 debug 下提示:fatal error C1083: Cannot open include file: 'boost/timer.hpp': No such file or directory;
在Win32 release下提示:
error C2065: 'timer' : undeclared identifier
error C2146: syntax error : missing ';' before identifier 't'
error C2065: 't' : undeclared identifier
这让我如何是好~~