[hpux] g++ 테스트시 에러

bombclear의 이미지

안녕하세요.

Linux, Solaris 에서 개발한 소스를 HPUX 로 포팅을 하려고 합니다.

개발환경을 맞추려하는데 참으로 쉽지가 않네요.

개발환경은
#uname -a
HP-UX B.11.11 U 9000/800

#gcc -v
Using built-in specs.
Target: hppa2.0w-hp-hpux11.11
Configured with: ../gcc/configure
Thread model: posix
gcc version 4.2.1

입니다.

아래는 컴파일 테스트를 위한 예제 소스 입니다.

#include
#include

int main(int argc, char** argv)
{
std::string message("Hello World!!!");

std::cout << message << std::endl;

return 0;
}

아래는 컴파일 에러 입니다.

#g++ test.cpp
In file included from /usr/local/include/c++/4.2.1/iosfwd:49,
from /usr/local/include/c++/4.2.1/ios:43,
from /usr/local/include/c++/4.2.1/ostream:45,
from /usr/local/include/c++/4.2.1/iostream:45,
from test.cpp:1:
/usr/local/include/c++/4.2.1/bits/postypes.h:49:35: error: stdint.h: No such file or directory

posttypes.h 49 라인을 보면

#ifdef _GLIBCXX_HAVE_STDINT_H
#include // For int64_t
#endif

정의가 되어있습니다. #include 를 주석처리하면 컴파일은 되나,
근본적인 해결이 아니여서 아래 질문을 드립니다.

현재 stdint.h 는 /usr/local/include/c++/4.2.1/tr1/stdint.h 에 위치해 있으며
컴파일시 -I/usr/local/include/c++/4.2.1/tr1 을 에러가 발생합니다. (동일한 에러는 아님)

posttypes.h 에 _GLIBCXX_HAVE_STDINT_H 값이 정의되어 stdint.h 를 인크루트 하려고 하는데,
__GLIBCXX_HAVE_STDINT_H 는 어디에서 정의되는지 궁금합니다.

답변 부탁 드리겠습니다.