简体   繁体   English

具有Qt / boost项目的VC xtree内部标头中的语法错误

[英]syntax error in VC xtree internal header with Qt/boost project

I'm using Boost with a Qt project. 我在Qt项目中使用Boost。 I added these lines to my .pro file. 我将这些行添加到我的.pro文件中。

INCLUDEPATH += C:/local/boost_1_62_0/
LIBS += "-LC:/local/boost_1_62_0/lib64-msvc-12.0/"

I'm linking against boost, as I use a the libICP library, that includes boost/multi_array and boost/array. 我使用libICP库链接到boost,因为它包含boost / multi_array和boost / array。

When I compile, I get a lot of errors : 编译时,我会遇到很多错误:

C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\xtree:20: error: C2143: syntax error : missing ',' before '<'
C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\xtree:21: error: C2518: keyword 'typename' illegal in base class list; ignored
C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\xtree:22: error: C2518: keyword 'typename' illegal in base class list; ignored
C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\xtree:132: error: C2065: '_Iterator_base0' : undeclared identifier

I suspect xtree is used by the implementation of multi_array or array, but I don't really know where to go from here. 我怀疑xtree被multi_array或array的实现所使用,但是我真的不知道从这里开始。

Ok, so I found the solution (I was working on this issue since yesterday...) 好的,所以我找到了解决方案(从昨天开始我一直在研究这个问题...)

In case someone else has a similar issue, it was just a case of unbalanced } at the end of the file ICP_Registration.h, that includes libICP. 如果其他人也有类似的问题,则仅是文件ICP_Registration.h(其中包含libICP)结尾处的不平衡}。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM