[Plib-users] Compile error `DBL_MAX' undeclared?
Brought to you by:
sjbaker
From: Michael L. S. <ms...@mi...> - 2001-05-23 01:05:05
|
Hi! I'm compiling plib-1.3.1 & I get c++ -DPACKAGE=\"plib\" -DVERSION=\"1.3.1\" -DHAVE_LIBDL=1 -DHAVE_LIBGL=1 -DHAVE_LIBGLU=1 -DHAVE_LIBGLUT=1 -DSTDC_HEADERS=1 -DHAVE_GL_GL_H=1 -DHAVE_GL_GLU_H=1 -DLINUX_JOYSTICK_IS_PRESENT=1 -DGLUT_IS_PRESENT=1 -I. -I. -I../../src/sg -I../../src/fnt -I../../src/util -I/usr/local/include -g -O2 -O6 -Wall -c pu.cxx In file included from pu.h:4, from puLocal.h:2, from pu.cxx:2: ../../src/sg/sg.h: In method `void sgBox::empty ()': ../../src/sg/sg.h:844: `FLT_MAX' undeclared (first use this function) ../../src/sg/sg.h:844: (Each undeclared identifier is reported only once for each function it appears in.) ../../src/sg/sg.h: In method `void sgdBox::empty ()': ../../src/sg/sg.h:2016: `DBL_MAX' undeclared (first use this function) make[2]: *** [pu.o] Error 1 make[2]: Leaving directory `/home/Michael/plib-1.3.1/src/pui' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/Michael/plib-1.3.1/src' make: *** [all-recursive] Error 1 [Michael@localhost plib-1.3.1]$ I'm compiling on a new install of RH 7.1 (the only other thing I've done to this system is install Mesa 3.4.2) here's the output of ./configure loading cache ./config.cache checking for a BSD compatible install... (cached) /usr/bin/install -c checking whether build environment is sane... yes checking whether make sets ${MAKE}... (cached) yes checking for working aclocal... found checking for working autoconf... found checking for working automake... found checking for working autoheader... found checking for working makeinfo... found includedir changed to ${prefix}/include/plib libdir is ${exec_prefix}/lib checking for gcc... (cached) gcc checking whether the C compiler (gcc ) works... yes checking whether the C compiler (gcc ) is a cross-compiler... no checking whether we are using GNU C... (cached) yes checking whether gcc accepts -g... (cached) yes checking how to run the C preprocessor... (cached) gcc -E checking for c++... (cached) c++ checking whether the C++ compiler (c++ ) works... yes checking whether the C++ compiler (c++ ) is a cross-compiler... no checking whether we are using GNU C++... (cached) yes checking whether c++ accepts -g... (cached) yes checking how to run the C++ preprocessor... (cached) c++ -E checking for a BSD compatible install... /usr/bin/install -c checking for ranlib... (cached) ranlib checking for windows.h... (cached) no checking for X... (cached) libraries /usr/X11R6/lib, headers /usr/X11R6/include checking for dnet_ntoa in -ldnet... (cached) no checking for dnet_ntoa in -ldnet_stub... (cached) no checking for gethostbyname... (cached) yes checking for connect... (cached) yes checking for remove... (cached) yes checking for shmat... (cached) yes checking for IceConnectionNumber in -lICE... (cached) yes checking for dlclose in -ldl... (cached) yes checking for glNewList in -lGL... (cached) yes checking for gluLookAt in -lGLU... (cached) yes checking for glutGetModifiers in -lfreeglut... (cached) no checking for glutGetModifiers in -lglut... (cached) yes checking for ALopenport in -laudio... (cached) no checking for ANSI C header files... (cached) yes checking for GL/gl.h... (cached) yes checking for GL/glu.h... (cached) yes checking for windows.h... (cached) no checking for joystick.h... (cached) no checking for linux/joystick.h... (cached) yes checking for GL/glut.h... (cached) yes checking for GL/freeglut.h... (cached) no creating ./config.status creating Makefile creating src/Makefile creating src/js/Makefile creating src/util/Makefile creating src/pui/Makefile creating src/sg/Makefile creating src/sl/Makefile creating src/ssg/Makefile creating src/fnt/Makefile |