[ODE] (no subject)

Byron Wright bslayerw at mindspring.com
Sat Jan 18 11:52:01 2003


Hi All,

My appologies if this questions has been answered already, I am new to
the list and could not find the answer in the archives.

I am having issues building ODE, more specifically I am having a problem
building ode-lib. I am using the Mingw port of GCC 3.2 to compile
ode-lib. The compiler is generation the following error: 
////////////////////////////////////////////////////////////////////////
////////
C:\ODE>make ode-lib
gcc -c -Wall -fno-exceptions -fno-rtti -DWIN32 -g -Iinclude
-DdDEBUG_ALLOC -O0 -o ode/src/array.o ode/src/array.cpp gcc -c -Wall
-fno-exceptions -fno-rtti -DWIN32 -g -Iinclude  -DdDEBUG_ALLOC -O0 -o
ode/src/error.o ode/src/error.cpp gcc -c -Wall -fno-exceptions -fno-rtti
-DWIN32 -g -Iinclude  -DdDEBUG_ALLOC -O0 -o ode/src/memory.o
ode/src/memory.cpp gcc -c -Wall -fno-exceptions -fno-rtti -DWIN32 -g
-Iinclude  -DdDEBUG_ALLOC -O0 -o ode/src/obstack.o ode/src/obstack.cpp
gcc -c -Wall -fno-exceptions -fno-rtti -DWIN32 -g -Iinclude
-DdDEBUG_ALLOC -O0 -o ode/src/odemath.o ode/src/odemath.cpp gcc -c -Wall
-fno-exceptions -fno-rtti -DWIN32 -g -Iinclude  -DdDEBUG_ALLOC -O0 -o
ode/src/matrix.o ode/src/matrix.cpp
ode/src/matrix.cpp: In function `int dFactorCholesky(dReal*, int)':
ode/src/matrix.cpp:121: `alloca' undeclared (first use this function)
ode/src/matrix.cpp:121: (Each undeclared identifier is reported only
once for
   each function it appears in.)
make: *** [ode/src/matrix.o] Error 1

C:\ODE>
////////////////////////////////////////////////////////////////////////
////////

As you can see "alloca" is undeclared (it's comes from a define "ALLOC"
which ends up being a define for dALLOCA16 on my target platform :

/* alloca aligned to the EFFICIENT_ALIGNMENT. note that this can waste
 * up to 15 bytes per allocation, depending on what alloca() returns.
*/

#define dALLOCA16(n) \
  ((char*)dEFFICIENT_SIZE(((int)(alloca((n)+(EFFICIENT_ALIGNMENT-1))))))

I have searched around for alloca and have not come up with anything
fruitful. If anyone has a solution to this I would gladly appreciate it.


Thanks,
Byron Wright