是我还是部分Boost轨道SVN (Boost几何扩展溶解)是不可编译的
Is it me or part of Boost Track SVN (Boost Geometry Extension Dissolve) is uncompilable?
Boost geometry的溶解在这里描述了一点,是我现在需要的,它的SVN家在这里,但只要我包括#include <boost/geometry/extensions/algorithms/dissolve.hpp>
,我就会得到编译错误(错误C4430, C2146和C2061)=(任何人都可以提供补丁吗?
示例代码可以在这里找到例如
错误:
Error 2 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:usersavestadesktopcftrunkcloudserver3rdpartyheader-onlyboostgeometryextensionsalgorithmsdissolve.hpp 67 1 CloudServer
Error 3 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:usersavestadesktopcftrunkcloudserver3rdpartyheader-onlyboostgeometryextensionsalgorithmsdissolve.hpp 67 1 CloudServer
Error 1 error C2146: syntax error : missing ';' before identifier 'state_type' c:usersavestadesktopcftrunkcloudserver3rdpartyheader-onlyboostgeometryextensionsalgorithmsdissolve.hpp 67 1 CloudServer
Error 4 error C2061: syntax error : identifier 'state_type' c:usersavestadesktopcftrunkcloudserver3rdpartyheader-onlyboostgeometryextensionsalgorithmsdissolve.hpp 76 1 CloudServer
最小的代码看起来像(在VS2010上测试失败的谨慎错误):
#include <boost/geometry/extensions/algorithms/dissolve.hpp>
int main()
{
return 0;
}
我在这里可以很好地编译(使用clang和gcc):
$ clang++ -I /Volumes/EyeFive/Marshall/Sources/boost/trunk junk.cpp
$ clang++ --version
Apple clang version 3.0 (tags/Apple/clang-211.10.1) (based on LLVM 3.0svn)
Target: x86_64-apple-darwin11.2.0
Thread model: posix
$ g++ -I /Volumes/EyeFive/Marshall/Sources/boost/trunk junk.cpp
$ g++ --version
i686-apple-darwin11-llvm-g++-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.1.00)
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
使用boost trunk。您使用的是哪种编译器(以及该编译器的哪个版本)?
所以,我猜答案是:是你;-)
boost主干分支是开发分支,并不总是编译。事实上,它的状态每小时都在变化。如果需要稳定且可编译的代码,请使用标记分支之一,例如:http://svn.boost.org/svn/boost/tags/release/Boost_1_47_0.
相关文章:
- 编译 Boost 时在 OS X 上的"ld:未知选项:-soname"
- 在其他容器中使用 boost::container::static_vector 时,GCC 编译错误"将'const s'绑定到类型's&'的引用丢弃限定符"
- 在 Centos7 上使用 boost 1.71.0 编译错误
- 包含来自 boost 1.73.0 的read_graphviz_new.cpp无法编译
- 编译用于Sony NMOS实现的C++boost库
- Simple_ls.cpp的C++Boost编译错误-未找到对Boost的引用::文件系统::路径::文件名
- python的Boost编译错误
- 在 Ubuntu 14.04 上使用 boost 编译:未定义对 'boost::thread::get_id() const' 的引用
- 使用boost编译时出错
- 关于使用cmake和boost编译c++代码的错误
- ubuntu服务器14.04上的Boost编译失败
- 使用boost编译错误.图1.56.0和g++ 4.6.4
- OS X 10.8.5下的Boost编译错误
- Boost编译标记gcc错误
- 使用mingw的boost编译错误
- Boost编译标志,它是什么意思
- Boost编译问题
- 用boost编译一些代码.Python在win7-64位
- 不能用boost编译
- 使用boost编译以使用可用的boost版本