[질문] C++ 코드 컴파일 에러
글쓴이: fharenheit / 작성시간: 수, 2007/05/09 - 4:54오후
다름이 아니오라 Apache ActiveMQ의 C++ 클라이언트 코드를 컴파일하려고 하는데 에러가 발생했습니다.
시스템은 Solaris 10(x86) 이고요, autoconf 2.6, automake 1.9.5, libtool 1.5.22, m4 1.4.9, gcc 3.4.6 입니다.
root@uomc # ls KEYS RELEASE_NOTES.txt config doc src LICENSE.txt aclocal.m4 config.h.in doxygen-include.am vs2005-build Makefile.am activemq-cpp.pc.in config.h.in~ doxygen.cfg Makefile.in activemq-cpp.xcodeproj config.log m4 NOTICE.txt autogen.sh configure openwire-scripts README.txt autom4te.cache configure.ac pom.xml root@uomc # ./configure checking for a BSD-compatible install... config/install-sh -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... config/install-sh -c -d checking for gawk... no checking for mawk... no checking for nawk... nawk checking whether make sets $(MAKE)... yes checking build system type... i386-pc-solaris2.10 checking host system type... i386-pc-solaris2.10 checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking for style of include used by make... GNU checking dependency style of gcc... gcc3 checking for g++... g++ checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking dependency style of g++... gcc3 checking for ranlib... ranlib checking whether build environment is sane... yes checking how to run the C++ preprocessor... g++ -E checking for grep that handles long lines and -e... /usr/xpg4/bin/grep checking for egrep... /usr/xpg4/bin/grep -E checking for ANSI C header files... no checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking whether byte ordering is bigendian... yes checking for short... yes checking size of short... configure: error: cannot compute sizeof (short) See `config.log' for more details. root@uomc #
configure를 하면 마지막에 다음의 에러가 발생합니다.
checking size of short... configure: error: cannot compute sizeof (short)
configure.ac 파일에 보면 다음의 내용이 나옵니다. sizeof를 하면서 에러가 발생했는데 C/C++ 개발자가 아니다 보니 뭐가 정확하게 문제인지 알 수가 없네요. 고수님들의 노하우를 좀 알려주세요.
... 생략 ## ----------------------------------------------- AC_PROG_CC AC_PROG_CXX ## Uncomment to use libtool for shared libs ## AM_PROG_LIBTOOL AC_PROG_RANLIB AM_SANITY_CHECK AC_LANG_CPLUSPLUS AC_C_BIGENDIAN AC_CHECK_SIZEOF(short) AC_CHECK_SIZEOF(int) AC_CHECK_SIZEOF(long) AC_CHECK_SIZEOF(char, 1) AC_CHECK_SIZEOF(short, 2) AC_CHECK_SIZEOF(int, 4) AC_CHECK_SIZEOF(long long, 8) AC_CHECK_SIZEOF(float, 4) AC_CHECK_SIZEOF(double, 8) ... 생략
Forums:
댓글 달기