단일 부스트 헤더 파일을 포함하여 부스트와 관련된 꿰 뚫을 수없는 컴파일 오류가 발생했습니다. 컴파일에서만이 포함 된 빈 파일 (맥 OS X 10.6.8에 GCC 4.2)을 포함한다 : 단일 부스트 posix_time.hpp 헤더 포함시 컴파일 오류
In file included from ../../../Boost Libraries/Boost_1_55_0/boost/type_traits/has_left_shift.hpp:43,
from ../../../Boost Libraries/Boost_1_55_0/boost/lexical_cast.hpp:165,
from ../../../Boost Libraries/Boost_1_55_0/boost/date_time/string_parse_tree.hpp:13,
from ../../../Boost Libraries/Boost_1_55_0/boost/date_time/period_parser.hpp:14,
from ../../../Boost Libraries/Boost_1_55_0/boost/date_time/date_facet.hpp:23,
from ../../../Boost Libraries/Boost_1_55_0/boost/date_time/gregorian/gregorian_io.hpp:16,
from ../../../Boost Libraries/Boost_1_55_0/boost/date_time/gregorian/gregorian.hpp:31,
from ../../../Boost Libraries/Boost_1_55_0/boost/date_time/posix_time/time_formatters.hpp:12,
from ../../../Boost Libraries/Boost_1_55_0/boost/date_time/posix_time/posix_time.hpp:24,
from /Users/homedir/dev/TheProject/Mac/Xcode/../Source/feature/test.cpp:12:
../../../Boost Libraries/Boost_1_55_0/boost/type_traits/detail/has_binary_operator.hpp:155: error: expected unqualified-id before 'do'
In file included from ../../../Boost Libraries/Boost_1_55_0/boost/date_time/posix_time/posix_time.hpp:34,
from /Users/homedir/dev/TheProject/Mac/Xcode/../Source/feature/test.cpp:12:
../../../Boost Libraries/Boost_1_55_0/boost/date_time/posix_time/time_parsers.hpp:40: error: expected `}' at end of input
../../../Boost Libraries/Boost_1_55_0/boost/date_time/posix_time/time_parsers.hpp:40: error: expected unqualified-id at end of input
../../../Boost Libraries/Boost_1_55_0/boost/date_time/posix_time/time_parsers.hpp:40: error: expected `}' at end of input
../../../Boost Libraries/Boost_1_55_0/boost/date_time/posix_time/time_parsers.hpp:40: error: expected `}' at end of input
../../../Boost Libraries/Boost_1_55_0/boost/date_time/posix_time/time_parsers.hpp:40: error: expected `}' at end of input
이 부스트 라이브러리
과 같이 사용되는 :#include "boost/date_time/posix_time/posix_time.hpp"
은 ... 이러한 오류를 발생 "헤더 만"- 작성되지 않았습니다.
실마리가 있습니까?
나는 바이너리가 아닌 컴파일러 콜렉션에서 GCC를 사용한다고 가정하지만, 어떤 경우에 컴파일을 사용하고 계십니까? 'C++'또는'g ++'를 사용하고 있습니까, 아니면 문자 그대로'gcc '를 사용하고 있습니까? – Corbin
XCode가 생성 중입니다 : /Developer/use/bin/gcc-4.2 -x C++ (그리고 다른 모든 옵션, 경로 등) – SMGreenfield
이 라이브러리는 GCC 4.2를 좋아하지 않습니다. (매우 오래된 것입니다.) –