2014-01-21 2 views
0

오랫동안 Boost C++ 라이브러리를 사용하고 있는데 Visual Studio 2012 (디버그 64 비트)에서 소프트웨어를 컴파일 할 때 갑자기 오류가 발생했습니다. 나는이 문제에 대해 전혀 몰랐으며 "산출물"은 실제로 나를 돕지 못한다.Boost C++ : 컴파일 오류

_libraries\lib_Boost\boost/iterator/iterator_facade.hpp(847): error C2059: syntax error : ',' 

그리고 너무 다음 하나 : 누군가가 이유를 찾을 나를 도울 수있는 아이디어가

_libraries\lib_Boost\boost/filesystem/operations.hpp(798): error C2678: binary '!=' : no operator found which takes a left-hand operand of type 'boost::filesystem::directory_iterator' (or there is no acceptable conversion) 
      _libraries\lib_Boost\boost/filesystem/path.hpp(621): could be 'bool boost::filesystem::operator !=(const boost::filesystem::path &,const boost::filesystem::path &)' 
      _libraries\lib_Boost\boost/filesystem/path.hpp(622): or  'bool boost::filesystem::operator !=(const boost::filesystem::path &,const boost::filesystem::path::string_type &)' 
      _libraries\lib_Boost\boost/filesystem/path.hpp(623): or  'bool boost::filesystem::operator !=(const boost::filesystem::path::string_type &,const boost::filesystem::path &)' 
      _libraries\lib_Boost\boost/filesystem/path.hpp(624): or  'bool boost::filesystem::operator !=(const boost::filesystem::path &,const boost::filesystem::path::value_type *)' 
      _libraries\lib_Boost\boost/filesystem/path.hpp(625): or  'bool boost::filesystem::operator !=(const boost::filesystem::path::value_type *,const boost::filesystem::path &)' 
      while trying to match the argument list '(boost::filesystem::directory_iterator, boost::filesystem::directory_iterator)' 

합니까 여기

은 내가 가진 오류의 종류 (출력)이다 이 오류들 중? 컴파일에 도움이되는 옵션이 있습니까?

가 난 단지 논문 2 오류 (시간이 많이!)

감사

+0

컴파일러 오류 또는 링커 오류입니까? 한 번 이런 종류의 링커 오류가 발생했습니다. 소스와 내 바이너리가 일치하지 않습니다 (소스가 라이브러리별로 업데이트되지 않았습니다). – jlandercy

+0

컴파일 오류입니다. C2678은 컴파일 오류입니다! Thx – Spectral

+0

안녕하세요, 문제가 해결되었습니다. 미친 듯이 움직이는 것은 VS2012 컴파일러 인 것 같습니다! 도움 주셔서 감사합니다. – Spectral

답변

0

나는이 문제를 찾을 수 있습니다을 가지고, 그것은 비주얼 스튜디오 2012 C++ 컴파일러의 버그에 관련이 있습니다. 전혀 관련이없는 파일에서

나는 다음과 같은 몇 가지 코드를 가지고 :

#ifdef SUPPORT_THIS_FEATURE 

... some code .... 

#endif 

난 그냥이 코드를 제거하고 모든 잘 작동합니다!

물론 SUPPORT_THIS_FEATURE가 정의되지 않았습니다!