2012-07-25 3 views
2

누군가 내가 이것을 도울 수 있는지 궁금합니다.gnuplot-iostream이 컴파일되지 않습니다

gnuplot-iostream 인터페이스의 소스 코드를 http://www.stahlke.org/dan/gnuplot-iostream/에서 가져 왔습니다. 내가 명령을 사용하여 코드를 컴파일 할 때 그러나 :

나는 과학 리눅스 6.2을 사용하고

/.../gnuplot-iostream.h: In constructor ‘Gnuplot::Gnuplot(const std::string&)’: 
/.../gnuplot-iostream.h:427: error: ‘never_close_handle’ is not a member of ‘boost::iostreams’ 

]$ cmake .; make 

나는 다음과 같은 컴파일러 오류를 얻을 (2.6.32-220.23.1을 커널 인. el6.x86_64), g ++ 4.4.6 및 추가 라이브러리가 설치되어 있어야합니다 (/ usr/include/boost/iostreams/exists).

도움을 주시면 감사하겠습니다.

D는

+0

버전? – ForEveR

답변

2

enum file_descriptor_flags 만 1.44.0 boost::iostreams에 첨가 하였다.

enum file_descriptor_flags 
{ 
    never_close_handle = 0, 
    close_handle = 3 
}; 
+0

그래, 그게 다야! 우리 시스템에 설치된 부스트 버전은 1.41입니다. 당신이 도움이 건배 ForEveR – dmon

2

따라서 해결책은 간단히 부스트 라이브러리를 업데이트하는 것입니다 (ForEveR에게 감사).

그러나 나처럼 시스템에서 라이브러리를 업데이트 할 수있는 권한이 없다면 컴파일을 강제 실행하고 boost :: iostreams :: 0과 함께 gnuplot-iostream.h 파일의 never_close_handle 부스트?

+0

나는 좋은 해킹 함께 올 때 그것을 사랑 :-) (+1) – mgilson

관련 문제