solaris 9 x86 에서 boost 라이브러리 사용할려면?
글쓴이: ssehoony / 작성시간: 수, 2004/12/15 - 9:54오전
intel 시퓨에서 solaris 9 을 설치하고
gcc 3.4.2 를 설치하고 기타 필요한 라이브러리도 다 설치했습니다.
그리고 boost 를 설치했습니다.
bjam 을 이용한 boost 를 잘 됐습니다.
그런데 boost 라이브러리를 사용한 프로그램을 컴파일하는데
에러가 발생했습니다. 라이브러리 사용에 있어서 문제가 아니고
Quote:
/usr/local/include/boost/iterator/iterator_facade.hpp:484: error: expected identifier before numeric constant
와 같은 boost 라이브러리 내부에서 발생했습니다.
boost 는 처음 1.32.0 로 해봤고 안되서 1.31.0 으로도 해봤습니다.
x86 debian 에서는 잘 컴파일되고 작동하는 프로그램인데
solaris 로 포팅하려는데 boost 에서 막혀 버리는 군요.
혹시 gcc 3.4.2 의 버그일까요?
다음은 컴파일러의 에러 메시지 전문입니다.
Quote:
g++ -I../../src/common -I../../src/common_cpp -I/usr/local/mysql/include/mysql -Wall -DDEBUG -ggdb -c news_d.cpp -o news_d.o
In file included from /usr/local/include/boost/iterator/iterator_adaptor.hpp:15,
from /usr/local/include/boost/token_iterator.hpp:21,
from /usr/local/include/boost/tokenizer.hpp:20,
from /usr/local/include/boost/date_time/date_parsing.hpp:12,
from /usr/local/include/boost/date_time/gregorian/parsers.hpp:13,
from /usr/local/include/boost/date_time/gregorian/greg_facet.hpp:14,
from /usr/local/include/boost/date_time/gregorian/formatters.hpp:14,
from /usr/local/include/boost/date_time/gregorian/conversion.hpp:17,
from /usr/local/include/boost/date_time/gregorian/gregorian.hpp:21,
from news_d.h:18,
from news_d.cpp:1:
/usr/local/include/boost/iterator/iterator_facade.hpp:484: error: expected identifier before numeric constant
/usr/local/include/boost/iterator/iterator_facade.hpp:484: error: expected `>' before numeric constant
/usr/local/include/boost/iterator/iterator_facade.hpp:484: error: `Derived2' was not declared in this scope
/usr/local/include/boost/iterator/iterator_facade.hpp:484: error: `Derived2' was not declared in this scope
/usr/local/include/boost/iterator/iterator_facade.hpp:484: error: template argument 3 is invalid
/usr/local/include/boost/iterator/iterator_facade.hpp:484: error: template argument 2 is invalid
/usr/local/include/boost/iterator/iterator_facade.hpp:484: error: template argument 3 is invalid
/usr/local/include/boost/iterator/iterator_facade.hpp:484: error: expected init-declarator before "operator"
/usr/local/include/boost/iterator/iterator_facade.hpp:484: error: expected `;' before "operator"
/usr/local/include/boost/iterator/iterator_facade.hpp:485: error: expected identifier before numeric constant
/usr/local/include/boost/iterator/iterator_facade.hpp:485: error: expected `>' before numeric constant
/usr/local/include/boost/iterator/iterator_facade.hpp:485: error: `Derived2' was not declared in this scope
/usr/local/include/boost/iterator/iterator_facade.hpp:485: error: `Derived2' was not declared in this scope
/usr/local/include/boost/iterator/iterator_facade.hpp:485: error: template argument 3 is invalid
/usr/local/include/boost/iterator/iterator_facade.hpp:485: error: template argument 2 is invalid
/usr/local/include/boost/iterator/iterator_facade.hpp:485: error: template argument 3 is invalid
/usr/local/include/boost/iterator/iterator_facade.hpp:485: error: expected init-declarator before "operator"
/usr/local/include/boost/iterator/iterator_facade.hpp:485: error: expected `;' before "operator"
/usr/local/include/boost/iterator/iterator_facade.hpp:487: error: expected identifier before numeric constant
/usr/local/include/boost/iterator/iterator_facade.hpp:487: error: expected `>' before numeric constant
/usr/local/include/boost/iterator/iterator_facade.hpp:487: error: `Derived2' was not declared in this scope
/usr/local/include/boost/iterator/iterator_facade.hpp:487: error: `Derived2' was not declared in this scope
/usr/local/include/boost/iterator/iterator_facade.hpp:487: error: template argument 3 is invalid
/usr/local/include/boost/iterator/iterator_facade.hpp:487: error: template argument 2 is invalid
/usr/local/include/boost/iterator/iterator_facade.hpp:487: error: template argument 3 is invalid
/usr/local/include/boost/iterator/iterator_facade.hpp:487: error: expected init-declarator before "operator"
/usr/local/include/boost/iterator/iterator_facade.hpp:487: error: expected `;' before "operator"
/usr/local/include/boost/iterator/iterator_facade.hpp:488: error: expected identifier before numeric constant
/usr/local/include/boost/iterator/iterator_facade.hpp:488: error: expected `>' before numeric constant
/usr/local/include/boost/iterator/iterator_facade.hpp:488: error: `Derived2' was not declared in this scope
/usr/local/include/boost/iterator/iterator_facade.hpp:488: error: `Derived2' was not declared in this scope
/usr/local/include/boost/iterator/iterator_facade.hpp:488: error: template argument 3 is invalid
/usr/local/include/boost/iterator/iterator_facade.hpp:488: error: template argument 2 is invalid
/usr/local/include/boost/iterator/iterator_facade.hpp:488: error: template argument 3 is invalid
/usr/local/include/boost/iterator/iterator_facade.hpp:488: error: expected init-declarator before "operator"
/usr/local/include/boost/iterator/iterator_facade.hpp:488: error: expected `;' before "operator"
/usr/local/include/boost/iterator/iterator_facade.hpp:489: error: expected identifier before numeric constant
/usr/local/include/boost/iterator/iterator_facade.hpp:489: error: expected `>' before numeric constant
/usr/local/include/boost/iterator/iterator_facade.hpp:489: error: `Derived2' was not declared in this scope
/usr/local/include/boost/iterator/iterator_facade.hpp:489: error: `Derived2' was not declared in this scope
/usr/local/include/boost/iterator/iterator_facade.hpp:489: error: template argument 3 is invalid
/usr/local/include/boost/iterator/iterator_facade.hpp:489: error: template argument 2 is invalid
/usr/local/include/boost/iterator/iterator_facade.hpp:489: error: template argument 3 is invalid
/usr/local/include/boost/iterator/iterator_facade.hpp:489: error: expected init-declarator before "operator"
/usr/local/include/boost/iterator/iterator_facade.hpp:489: error: expected `;' before "operator"
/usr/local/include/boost/iterator/iterator_facade.hpp:490: error: expected identifier before numeric constant
/usr/local/include/boost/iterator/iterator_facade.hpp:490: error: expected `>' before numeric constant
/usr/local/include/boost/iterator/iterator_facade.hpp:490: error: `Derived2' was not declared in this scope
/usr/local/include/boost/iterator/iterator_facade.hpp:490: error: `Derived2' was not declared in this scope
/usr/local/include/boost/iterator/iterator_facade.hpp:490: error: template argument 3 is invalid
/usr/local/include/boost/iterator/iterator_facade.hpp:490: error: template argument 2 is invalid
/usr/local/include/boost/iterator/iterator_facade.hpp:490: error: template argument 3 is invalid
/usr/local/include/boost/iterator/iterator_facade.hpp:490: error: expected init-declarator before "operator"
/usr/local/include/boost/iterator/iterator_facade.hpp:490: error: expected `;' before "operator"
/usr/local/include/boost/iterator/iterator_facade.hpp:493: error: expected identifier before numeric constant
/usr/local/include/boost/iterator/iterator_facade.hpp:493: error: expected `>' before numeric constant
/usr/local/include/boost/iterator/iterator_facade.hpp:493: error: `Derived2' was not declared in this scope
/usr/local/include/boost/iterator/iterator_facade.hpp:493: error: `Derived2' was not declared in this scope
/usr/local/include/boost/iterator/iterator_facade.hpp:493: error: template argument 3 is invalid
/usr/local/include/boost/iterator/iterator_facade.hpp:493: error: template argument 2 is invalid
/usr/local/include/boost/iterator/iterator_facade.hpp:493: error: template argument 3 is invalid
/usr/local/include/boost/iterator/iterator_facade.hpp:493: error: expected init-declarator before "operator"
/usr/local/include/boost/iterator/iterator_facade.hpp:493: error: expected `;' before "operator"
/usr/local/include/boost/iterator/iterator_facade.hpp:836: error: expected identifier before numeric constant
/usr/local/include/boost/iterator/iterator_facade.hpp:836: error: expected `>' before numeric constant
/usr/local/include/boost/iterator/iterator_facade.hpp:836: error: `Derived2' was not declared in this scope
/usr/local/include/boost/iterator/iterator_facade.hpp:836: error: `Derived2' was not declared in this scope
/usr/local/include/boost/iterator/iterator_facade.hpp:836: error: template argument 3 is invalid
/usr/local/include/boost/iterator/iterator_facade.hpp:836: error: template argument 2 is invalid
/usr/local/include/boost/iterator/iterator_facade.hpp:836: error: template argument 3 is invalid
/usr/local/include/boost/iterator/iterator_facade.hpp:836: error: expected init-declarator before "operator"
/usr/local/include/boost/iterator/iterator_facade.hpp:836: error: expected `;' before "operator"
/usr/local/include/boost/iterator/iterator_facade.hpp:837: error: expected identifier before numeric constant
/usr/local/include/boost/iterator/iterator_facade.hpp:837: error: expected `>' before numeric constant
/usr/local/include/boost/iterator/iterator_facade.hpp:837: error: `Derived2' was not declared in this scope
/usr/local/include/boost/iterator/iterator_facade.hpp:837: error: `Derived2' was not declared in this scope
/usr/local/include/boost/iterator/iterator_facade.hpp:837: error: template argument 3 is invalid
/usr/local/include/boost/iterator/iterator_facade.hpp:837: error: template argument 2 is invalid
/usr/local/include/boost/iterator/iterator_facade.hpp:837: error: template argument 3 is invalid
/usr/local/include/boost/iterator/iterator_facade.hpp:837: error: expected init-declarator before "operator"
/usr/local/include/boost/iterator/iterator_facade.hpp:837: error: expected `;' before "operator"
/usr/local/include/boost/iterator/iterator_facade.hpp:839: error: expected identifier before numeric constant
/usr/local/include/boost/iterator/iterator_facade.hpp:839: error: expected `>' before numeric constant
/usr/local/include/boost/iterator/iterator_facade.hpp:839: error: `Derived2' was not declared in this scope
/usr/local/include/boost/iterator/iterator_facade.hpp:839: error: `Derived2' was not declared in this scope
/usr/local/include/boost/iterator/iterator_facade.hpp:839: error: template argument 3 is invalid
/usr/local/include/boost/iterator/iterator_facade.hpp:839: error: template argument 2 is invalid
/usr/local/include/boost/iterator/iterator_facade.hpp:839: error: template argument 3 is invalid
/usr/local/include/boost/iterator/iterator_facade.hpp:839: error: expected init-declarator before "operator"
/usr/local/include/boost/iterator/iterator_facade.hpp:839: error: expected `;' before "operator"
/usr/local/include/boost/iterator/iterator_facade.hpp:840: error: expected identifier before numeric constant
/usr/local/include/boost/iterator/iterator_facade.hpp:840: error: expected `>' before numeric constant
/usr/local/include/boost/iterator/iterator_facade.hpp:840: error: `Derived2' was not declared in this scope
/usr/local/include/boost/iterator/iterator_facade.hpp:840: error: `Derived2' was not declared in this scope
/usr/local/include/boost/iterator/iterator_facade.hpp:840: error: template argument 3 is invalid
/usr/local/include/boost/iterator/iterator_facade.hpp:840: error: template argument 2 is invalid
/usr/local/include/boost/iterator/iterator_facade.hpp:840: error: template argument 3 is invalid
/usr/local/include/boost/iterator/iterator_facade.hpp:840: error: expected init-declarator before "operator"
/usr/local/include/boost/iterator/iterator_facade.hpp:840: error: expected `;' before "operator"
/usr/local/include/boost/iterator/iterator_facade.hpp:841: error: expected identifier before numeric constant
/usr/local/include/boost/iterator/iterator_facade.hpp:841: error: expected `>' before numeric constant
/usr/local/include/boost/iterator/iterator_facade.hpp:841: error: `Derived2' was not declared in this scope
/usr/local/include/boost/iterator/iterator_facade.hpp:841: error: `Derived2' was not declared in this scope
/usr/local/include/boost/iterator/iterator_facade.hpp:841: error: template argument 3 is invalid
/usr/local/include/boost/iterator/iterator_facade.hpp:841: error: template argument 2 is invalid
/usr/local/include/boost/iterator/iterator_facade.hpp:841: error: template argument 3 is invalid
/usr/local/include/boost/iterator/iterator_facade.hpp:841: error: expected init-declarator before "operator"
/usr/local/include/boost/iterator/iterator_facade.hpp:841: error: expected `;' before "operator"
/usr/local/include/boost/iterator/iterator_facade.hpp:842: error: expected identifier before numeric constant
/usr/local/include/boost/iterator/iterator_facade.hpp:842: error: expected `>' before numeric constant
/usr/local/include/boost/iterator/iterator_facade.hpp:842: error: `Derived2' was not declared in this scope
/usr/local/include/boost/iterator/iterator_facade.hpp:842: error: `Derived2' was not declared in this scope
/usr/local/include/boost/iterator/iterator_facade.hpp:842: error: template argument 3 is invalid
/usr/local/include/boost/iterator/iterator_facade.hpp:842: error: template argument 2 is invalid
/usr/local/include/boost/iterator/iterator_facade.hpp:842: error: template argument 3 is invalid
/usr/local/include/boost/iterator/iterator_facade.hpp:842: error: expected init-declarator before "operator"
/usr/local/include/boost/iterator/iterator_facade.hpp:842: error: expected `;' before "operator"
/usr/local/include/boost/iterator/iterator_facade.hpp:846: error: expected identifier before numeric constant
/usr/local/include/boost/iterator/iterator_facade.hpp:846: error: expected `>' before numeric constant
/usr/local/include/boost/iterator/iterator_facade.hpp:846: error: `Derived2' was not declared in this scope
/usr/local/include/boost/iterator/iterator_facade.hpp:846: error: `Derived2' was not declared in this scope
/usr/local/include/boost/iterator/iterator_facade.hpp:846: error: template argument 3 is invalid
/usr/local/include/boost/iterator/iterator_facade.hpp:846: error: template argument 2 is invalid
/usr/local/include/boost/iterator/iterator_facade.hpp:846: error: template argument 3 is invalid
/usr/local/include/boost/iterator/iterator_facade.hpp:846: error: expected init-declarator before "operator"
/usr/local/include/boost/iterator/iterator_facade.hpp:846: error: expected `;' before "operator"
/usr/local/include/boost/date_time/date_parsing.hpp: In function `date_type boost::date_time::parse_date(const std::string&, int) [with date_type = boost::gregorian::date]':
/usr/local/include/boost/date_time/gregorian/parsers.hpp:24: instantiated from here
/usr/local/include/boost/date_time/date_parsing.hpp:119: error: no match for 'operator!=' in 'beg != boost::tokenizer<TokenizerFunc, Iterator, Type>::end() const [with TokenizerFunc = boost::char_delimiters_separator<char, std::char_traits<char> >, Iterator = __gnu_cxx::__normal_iterator<const char*, std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, Type = std::basic_string<char, std::char_traits<char>, std::allocator<char> >]()'
/usr/local/include/boost/operators.hpp:152: note: candidates are: bool boost::operator!=(const boost::gregorian::date&, const boost::gregorian::date&)
/usr/local/include/boost/operators.hpp:152: note: bool boost::operator!=(const boost::date_time::date_duration<boost::gregorian::date_duration_rep>&, const boost::date_time::date_duration<boost::gregorian::date_duration_rep>&)
/usr/local/include/boost/operators.hpp:152: note: bool boost::operator!=(const boost::date_time::period<boost::gregorian::date, boost::gregorian::date_duration>&, const boost::date_time::period<boost::gregorian::date, boost::gregorian::date_duration>&)
/usr/local/include/boost/date_time/date_parsing.hpp: In function `date_type boost::date_time::parse_undelimited_date(const std::string&) [with date_type = boost::gregorian::date]':
/usr/local/include/boost/date_time/gregorian/parsers.hpp:44: instantiated from here
/usr/local/include/boost/date_time/date_parsing.hpp:154: error: no match for 'operator!=' in 'ti != boost::tokenizer<TokenizerFunc, Iterator, Type>::end() const [with TokenizerFunc = boost::offset_separator, Iterator = __gnu_cxx::__normal_iterator<const char*, std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, Type = std::basic_string<char, std::char_traits<char>, std::allocator<char> >]()'
/usr/local/include/boost/operators.hpp:152: note: candidates are: bool boost::operator!=(const boost::gregorian::date&, const boost::gregorian::date&)
/usr/local/include/boost/operators.hpp:152: note: bool boost::operator!=(const boost::date_time::date_duration<boost::gregorian::date_duration_rep>&, const boost::date_time::date_duration<boost::gregorian::date_duration_rep>&)
/usr/local/include/boost/operators.hpp:152: note: bool boost::operator!=(const boost::date_time::period<boost::gregorian::date, boost::gregorian::date_duration>&, const boost::date_time::period<boost::gregorian::date, boost::gregorian::date_duration>&)
make: *** [news_d.o] Error 1
Forums:
댓글 달기