它是我或Boost轨道SVN(Boost几何扩展溶解)的一部分是不可编译? [英] Is it me or part of Boost Track SVN (Boost Geometry Extension Dissolve) is uncompilable?

查看:184
本文介绍了它是我或Boost轨道SVN(Boost几何扩展溶解)的一部分是不可编译?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Boost几何体的溶解这里描述了,是我需要的现在,其SVN首页是此处,但是包含 #include< boost / geometry / extensions / algorithms / dissolve.hpp> 我得到编译错误(错误C4430,C2146和C2061)=提供补丁吗?



可以找到示例代码,例如 < a>



错误:

 错误2错误C4430:注意:C ++不支持default-int c:\users\avesta\desktop\cf\trunk\cloudserver\3rdparty\header-only\boost\geometry\ extensions\algorithms\dissolve.hpp 67 1 CloudServer 

错误3错误C4430:缺少类型说明符 - int假设注意:C ++不支持default-int c:\users\avesta\\ \\desktop\cf\trunk\cloudserver\3rdparty\header-only\boost\geometry\extensions\algorithms\dissolve.hpp 67 1 CloudServer

错误1错误C2146:语法错误:缺少';'在标识符'state_type'之前c:\users\avesta\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ extensions\algorithms\dissolve.hpp 67 1 CloudServer

错误4错误C2061:语法错误:标识符'state_type'c:\users\avesta\desktop\cf\trunk\\ \\ cloudserver\3rdparty\header-only\boost\geometry\extensions\algorithms\dissolve.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版本3.0(标签/ Apple / clang-211.10.1)(基于LLVM 3.0svn)
目标:x86_64-apple-darwin11.2.0
线程模型:posix
$ g ++ -I / Volumes / EyeFive / Marshall / Sources / boost / trunk junk.cpp
$ g ++ --version
i686-apple-darwin11-llvm -g ++ - 4.2(GCC)4.2.1(基于Apple Inc.构建5658)(LLVM构建2336.1.00)
版权所有(C)2007自由软件基金会,
这是免费软件;请参阅复制条件的来源。有NO
保修;甚至不适用于适销性或特定用途的适用性。

使用升压干线。
你使用什么编译器(和那个编译器的什么版本)?



所以,我想答案是:

Boost geometry's dissolve described a bit here, is what I need right now, its SVN home is here but as soon as I include #include <boost/geometry/extensions/algorithms/dissolve.hpp> I get compile errors (error C4430, C2146 and C2061)=( Can any one provide a patch?

Sample code can be found for example here

Errors:

Error   2   error C4430: missing type specifier - int assumed. Note: C++ does not support default-int   c:\users\avesta\desktop\cf\trunk\cloudserver\3rdparty\header-only\boost\geometry\extensions\algorithms\dissolve.hpp 67  1   CloudServer

Error   3   error C4430: missing type specifier - int assumed. Note: C++ does not support default-int   c:\users\avesta\desktop\cf\trunk\cloudserver\3rdparty\header-only\boost\geometry\extensions\algorithms\dissolve.hpp 67  1   CloudServer

Error   1   error C2146: syntax error : missing ';' before identifier 'state_type'  c:\users\avesta\desktop\cf\trunk\cloudserver\3rdparty\header-only\boost\geometry\extensions\algorithms\dissolve.hpp 67  1   CloudServer

Error   4   error C2061: syntax error : identifier 'state_type' c:\users\avesta\desktop\cf\trunk\cloudserver\3rdparty\header-only\boost\geometry\extensions\algorithms\dissolve.hpp 76  1   CloudServer

minimal bit of code would look like (tested to fail with that wary errors on VS2010):

#include <boost/geometry/extensions/algorithms/dissolve.hpp>

int main()
{
    return 0;
}

解决方案

It compiles just fine for me here (with clang and 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.

Using the boost trunk. What compiler (and what version of that compiler) are you using?

So, I guess the answer is: It's you ;-)

这篇关于它是我或Boost轨道SVN(Boost几何扩展溶解)的一部分是不可编译?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆