[ODE] Help needed

Kirill Ratkin kirillratkin at rambler.ru
Fri Apr 30 08:52:45 MST 2004


Hi.

Oh oh oh hoo...
It seems for me the 'new' operator problem is old bug of studio 6 ...
Umberto, have you got SP5 for VS6?

Regards,
Kir

On Fri, 30 Apr 2004 13:19:06 +1000
  Ed Jones <ed.jones at oracle.com> wrote:
>Firstly, the ode-bin archives are precompiled versions of ODE.
>If you get these then you don't need to compile ODE itself, you just 
>need to compile your application and link to the supplied libraries.
>
>Which archive you want depends on what you want to do.
>The SINGLE and DOUBLE refers to whether it's compiled in single 
>precision (float) or double precision mode.
>The debug bit means it's compiled with the debugging symbols, and the 
>no/trimesh bit is whether or not it's got the trimesh collider 
>compiled into it.
>
>When you're compiling you application (test =buggy, or whatever) you 
>don't need to add anything from "C:\ode-040427\ode\src\" that's 
>what's in the precompiled libraries that you downloaded.
>Just compile your source code and link it to the ODE library.
>Likewise for the drawstuff example graphics framework.
>
>Hope that makes sense.
>Cheers,
>Ed.
>
>
>Umberto wrote:
>
>> Hi all,
>> I'm new to ODE and I need some help.
>> I want to compile example source files, but I can't do it. I'm using 
>> MSVC6.
>> I read the user guide, faq and documentation on Wiki area, but I 
>>still 
>> can't understand how to compile the files.
>> I guess I did something wrong, so I'm telling you step by step what 
>>I 
>> did:
>>
>> 1. I downloaded these archive files:
>> ode-bin-040421-msvc-SINGLE-debug-trimesh.zip
>> ode-bin-040421-msvc-DOUBLE-debug-notrimesh.zip
>> ode-040428.tar.gz (sources of example files are only in the 3rd 
>>file)
>>
>> First question: which archive file do I need to compile examples?
>>
>> 2. I unzipped the the 3rd archive file in "C:\ode-040428\" archive 
>>files
>>
>> 3. I compiled ODE as explained in the file INSTALL (in 
>> "C:\ode-040428\") and in the file ReadMe (in VC6 directory). Then I 
>> installed it, adding include and lib directories in MSVC6.
>> I compiled ODE with this user-settings:
>> PLATFORM=msvc
>> #PRECISION=SINGLE
>> PRECISION=DOUBLE
>> BUILD=debug
>> #BUILD=release
>> WINDOWS16=0
>> OPCODE_DIRECTORY=OPCODE
>>
>> 3. In MSVC I added "C:\ode-040428\ode\lib" to the library dir; 
>> "C:\ode-040428\ode\include" and "C:\ode-040428\ode\opcode" to the 
>> include dir. I think this is sufficient to install the library
>>
>> 4. I created a new win32 application named test1
>>
>> 5. I added opengl32.lib and glu32.lib in Object\Library modules of 
>> Project settings->Link
>>
>> 6. I added these files to the project:
>> - test_buggy.cpp from "C:\ode-040427\ode\test\"
>> - all .cpp and .c files from "C:\ode-040427\ode\src\", except from 
>> scrapbook.cpp and stack.cpp
>> - drawstuff.cpp, windows.cpp and resources.rc from 
>> "C:\ode-040427\drawstuff\src\"
>>
>> 7. Finally I built the project and this is what I got:
>> --------------------Configuration: test1 - Win32 
>> Debug--------------------
>> Compiling...
>> collision_trimesh.cpp
>> C:\ode-040428\ode\src\collision_trimesh.cpp(36) : error C2065: 'g' : 
>> undeclared identifier
>> C:\ode-040428\ode\src\collision_trimesh.cpp(145) : warning C4244: 
>>'=' 
>> : conversion from 'double' to 'float', possible loss of data
>> C:\ode-040428\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-040428\ode\src\objects.h(49) : see declaration of 
>>'new'
>> Error executing cl.exe.
>>
>> test1.exe - 1 error(s), 2 warning(s)
>>
>>
>> Could somebody please explain to me where I'm wrong and what I have 
>>to 
>> do step by step?
>> Thanx a lot in advance
>>
>>
>> _______________________________________________
>> ODE mailing list
>> ODE at q12.org
>> http://q12.org/mailman/listinfo/ode
>
>
>
>_______________________________________________
>ODE mailing list
>ODE at q12.org
>http://q12.org/mailman/listinfo/ode



More information about the ODE mailing list