Is this with CVS? Check to see what file was set up with configure.
Look at your config.log and then see if strstream was found or
strstream.h.
David
Adding
#include <errno.h>
to mem.c seems to patch this (as per the man file).
However, I'm now investigating problems with GARcomand.C
GARCommand.C: In member function `virtual boolean
GARCommand::doIt(CommandInterface*)':
GARCommand.C:53: error: `strstream' undeclared (first use this function)
GARCommand.C:53: error: (Each undeclared identifier is reported only
once for
each function it appears in.)
GARCommand.C:53: error: parse error before `;' token
GARCommand.C:80: error: `tmpstr' undeclared (first use this
function)
-- Thanks
On Wed, Sep 24, 2003 at 12:28:32PM -0600, David Thompson wrote:
Do a man errno and see which lib you need to include to get it that
isn't being included.
>I was trying to compile with gcc 3.3.1-r1 and got the following linking
>error:
>
>make[3]: Entering directory `/home/jfox/dx/src/exec/dxexec'
>gcc -mcpu=pentium3 -O3 -pipe -Wall -g -O2 -I/usr/X11R6/include
>-D_GNU_SOURCE -o dxexec -Wl,-export-dynamic main.o
>../dpexec/libDPEXEC.a ../dxmods/libDXMODS.a ../libdx/libLIBDX.a
>../hwrender/libHW.a ../hwrender/opengl/libOPENGL.a -lnsl -lnetcdf
>-lXpm -ltiff -ldl -lXm -lXp -lGLU -lGL -lXt -L/usr/X11R6/lib -L/usr/lib
>-lMagick -ljbig -lfreetype -ljpeg -lpng -lwmflite -ldpstk -ldps -lXext
>-lSM -lICE -lX11 -lbz2 -lxml2 -lz -lpthread -lm
>../dpexec/libDPEXEC.a(loader.o)(.text+0x34e): In function
>`DXUnloadObjFile':
>/home/jfox/dx/src/exec/dpexec/loader.c:696: warning: `sys_errlist' is
>deprecated; use `strerror' or `strerror_r' instead
>/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.1/../../../../i686-pc-linux-gnu/bin/ld:
>warning: libdpstk.so.0, needed by /usr/lib/libMagick.so, may conflict
>with libdpstk.so.1
>/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.1/../../../../i686-pc-linux-gnu/bin/ld:
>warning: libdps.so.0, needed by /usr/lib/libMagick.so, may conflict with
>libdps.so.1
>../libdx/libLIBDX.a(mem.o)(.text+0x50f): In function `_dxfsetmem':
>/home/jfox/dx/src/exec/libdx/mem.c:414: undefined reference to `errno'
>../libdx/libLIBDX.a(mem.o)(.text+0x577):/home/jfox/dx/src/exec/libdx/mem.c:379:
>undefined reference to `errno'
>collect2: ld returned 1 exit status
>make[3]: *** [dxexec] Error 1
>make[3]: Leaving directory `/home/jfox/dx/src/exec/dxexec'
>make[2]: *** [all-recursive] Error 1
>make[2]: Leaving directory `/home/jfox/dx/src/exec'
>make[1]: *** [all-recursive] Error 1
>make[1]: Leaving directory `/home/jfox/dx/src'
>make: *** [all-recursive] Error 1
>
>Any clue what's wong in mem.c and errno?
>
>-- Jon
--
.............................................................................
David L. Thompson Visualization and Imagery Solutions,
Inc.
mailto:[EMAIL PROTECTED] 5515 Skyway Drive, Missoula, MT 59804
Phone : (406)756-7472
--
.............................................................................
David L. Thompson Visualization and Imagery Solutions, Inc.
mailto:[EMAIL PROTECTED] 5515 Skyway Drive, Missoula, MT 59804
Phone : (406)756-7472