info-inventor-dev
[Top] [All Lists]

minor compilation errors/fixes

To: info-inventor-dev@xxxxxxxxxxx
Subject: minor compilation errors/fixes
From: Johan Jansson <j.jansson@xxxxxxxxxxxxx>
Date: Tue, 13 Mar 2001 01:46:17 +0100 (CET)
Sender: owner-info-inventor-dev@xxxxxxxxxxx
Hi,

Here are some minor compilation errors and fixes for the latest CVS (I got
it earlier today), with gcc 2.95.3:

SoLODV2.c++:
problem: FLT_MAX undeclared
fix: <limits.h> should be <float.h> (limits.h is only for integral limits)

SoGLRenderAction.c++:
problem: FLT_MAX undeclared
fix: include <float.h>

Sb.c++:
problem: implicit declarations of localtime() and strftime()
fix: include <time.h>

GeneralizedCylinder.c++:
problem: The statement "delete [] spineKeyPointRotations;" causes an
internal compiler error.
fix: Unknown, wait for the next gcc version :).

Also, something which is not an error, but isn't it possible to determine
automatically whether the glw... or glwM... functions are
available? "GLwMDrawA.h" basically looks like this on my system:

--

#ifndef __GLX_MOTIF
#define __GLX_MOTIF 1
#endif
#include "GLwDrawA.h"

--

Isn't it possible to include only "GLwDrawA.h", and then define
__GLX_MOTIF depending on which library is available. I guess this requires
some kind of autoconf system? Or maybe there is a better solution which
I've missed?

Finally, the demos "drop" and "noodle" segfault on my system, are they
supposed to work? I guess this is not a very big deal though (assuming
noone requires the functionality which segfaults).

  Johan



<Prev in Thread] Current Thread [Next in Thread>
  • minor compilation errors/fixes, Johan Jansson <=