当前时区为 UTC + 8 小时



发表新帖 回复这个主题  [ 1 篇帖子 ] 
作者 内容
1 楼 
 文章标题 : Ubuntu 上make出错
帖子发表于 : 2012-06-13 10:49 

注册: 2012-06-13 10:39
帖子: 1
送出感谢: 0 次
接收感谢: 0 次
想要在Ubuntu 11.10 上安装如链接所示C++ library.
http://www.robots.ox.ac.uk/~vgg/software/fastcluster/

我已安装如下软件:
Linux
CMake >= 2.6.0
Python >= 2.5 (but < 3.0)
MPI library (OpenMPI is recommended)
Numpy (http://numpy.scipy.org/)
PyTables (http://www.pytables.org/)
fastann library (http://github.com/philbinj/fastann)

安装都如里面的README.txt所示,只是我安装在了/opt文件夹下。

但是执行make指令时会出现如下错误:

[email protected]:/opt/fastcluster# make
[ 16%] Building CXX object CMakeFiles/fastcluster.dir/kmeans.cpp.o
/opt/fastcluster/kmeans.cpp: 在成员函数‘virtual void fastcluster::kmeans_work_item::serialize(std::ostream&) const’中:
/opt/fastcluster/kmeans.cpp:32:13: 错误: 对不完全的类型‘std::ostream {aka struct std::basic_ostream<char>}’的非法使用
/usr/include/c++/4.6/iosfwd:88:11: 错误: ‘std::ostream {aka struct std::basic_ostream<char>}’的声明
/opt/fastcluster/kmeans.cpp:33:13: 错误: 对不完全的类型‘std::ostream {aka struct std::basic_ostream<char>}’的非法使用
/usr/include/c++/4.6/iosfwd:88:11: 错误: ‘std::ostream {aka struct std::basic_ostream<char>}’的声明
/opt/fastcluster/kmeans.cpp: 在成员函数‘virtual fastcluster::kmeans_work_item* fastcluster::kmeans_work_item::unserialize(std::istream&) const’中:
/opt/fastcluster/kmeans.cpp:40:13: 错误: 对不完全的类型‘std::istream {aka struct std::basic_istream<char>}’的非法使用
/usr/include/c++/4.6/iosfwd:85:11: 错误: ‘std::istream {aka struct std::basic_istream<char>}’的声明
/opt/fastcluster/kmeans.cpp:40:31: 警告: 将一个整数转换为大小不同的指针 [-Wint-to-pointer-cast]
/opt/fastcluster/kmeans.cpp:41:13: 错误: 对不完全的类型‘std::istream {aka struct std::basic_istream<char>}’的非法使用
/usr/include/c++/4.6/iosfwd:85:11: 错误: ‘std::istream {aka struct std::basic_istream<char>}’的声明
/opt/fastcluster/kmeans.cpp:41:31: 警告: 将一个整数转换为大小不同的指针 [-Wint-to-pointer-cast]
make[2]: *** [CMakeFiles/fastcluster.dir/kmeans.cpp.o] 错误 1
make[1]: *** [CMakeFiles/fastcluster.dir/all] 错误 2
make: *** [all] 错误 2



请高手指导一下为什么?


页首
 用户资料  
 
显示帖子 :  排序  
发表新帖 回复这个主题  [ 1 篇帖子 ] 

当前时区为 UTC + 8 小时


在线用户

正在浏览此版面的用户:Bing [Bot] 和 0 位游客


不能 在这个版面发表主题
不能 在这个版面回复主题
不能 在这个版面编辑帖子
不能 在这个版面删除帖子
不能 在这个版面提交附件

前往 :  
本站点为公益性站点,用于推广开源自由软件,由 DiaHosting VPSBudgetVM VPS 提供服务。
我们认为:软件应可免费取得,软件工具在各种语言环境下皆可使用,且不会有任何功能上的差异;
人们应有定制和修改软件的自由,且方式不受限制,只要他们自认为合适。

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
简体中文语系由 王笑宇 翻译