[ODE] { Newbie, Need a bit help }
HanSolo
hansolo7 at telepolis.com
Mon Jun 13 23:12:09 MST 2005
Hello.
I have a simple code in C (not C++):
-----------------------
#include <stdio.h>
#include <stdlib.h>
#include <ode/ode.h>
dWorldID w = 0;
int main()
{
w = dWorldCreate();
return 0;
}
------------------------
I have the gcc compiler for windows (djgpp)
i compile with 'gcc -g -Wall -o a.exe a.c' and the result is:
C:\>gcc -g -Wall -o a.exe a.c
c:/djgpp/tmp/cc4Eaym0.o: In function `main':
c://a.c:9: undefined reference to `_dWorldCreate'
collect2: ld returned 1 exit status
-->The same result i got it with my linux.
---> Too i've installed from a Debian Package and ok, but works like
when i compiling ode.
I've included the *.h's in the compiler directories
'c:\djgpp\include\ode'
'c:\djgpp\include\drawstuff'
'c:\djgpp\lib\libode.a' (copied from my linux)
Too i've tried with VC6 workspace,
- i execute single (no trimesh) .bat and execute ode.dsp, but i have
other problems when compile the library.
....
C:\ode\ode\src\collision_quadtreespace.cpp(582) : warning C4291: 'void
*__cdecl dBase::operator new(unsigned int)' : no matching operator
delete found; memory will not be freed if initialization throws an
exception
C:\ode\ode\src\objects.h(49) : see declaration of 'new'
collision_space.cpp
collision_std.cpp
collision_transform.cpp
collision_trimesh.cpp
C:\ode\ode\src\collision_trimesh.cpp(341) : warning C4291: 'void
*__cdecl dBase::operator new(unsigned int)' : no matching operator
delete found; memory will not be freed if initialization throws an
exception
C:\ode\ode\src\objects.h(49) : see declaration of 'new'
...
Creating library...
ode.lib - 0 error(s), 2 warning(s)
But when i compile only my little program i get 0 errors and 0 warnings.
And i can't execute my little program :-(
Someone can help me with the compilators? Thanks
More information about the ODE
mailing list