[ODE] Linker errors with ClanLib

gl gl at ntlworld.com
Wed Jul 7 13:28:15 MST 2004


Not sure what ClanLib is, but it's probably compiled for a different
runtime.  The VC6 workspace defaults to '(Debug) Multithreaded DLL'.  Change
it to match what your compiling with and it should work.
--
gl

----- Original Message ----- 
From: "Dave Cobb" <shpydir at daintyrhino.com>
To: <ode at q12.org>
Sent: Wednesday, July 07, 2004 12:44 PM
Subject: [ODE] Linker errors with ClanLib


> I'm trying to use ODE with ClanLib and I keep getting the following
> linker errors when I link with ode.lib or oded.lib
>
> Linking...
> MSVCRT.lib(MSVCRT.dll) : error LNK2005: _exit already defined in
> LIBCMT.lib(crt0dat.obj)
> MSVCRT.lib(MSVCRT.dll) : error LNK2005: __snprintf already defined in
> LIBCMT.lib(snprintf.obj)
> MSVCRT.lib(MSVCRT.dll) : error LNK2005: _abort already defined in
> LIBCMT.lib(abort.obj)
> MSVCRT.lib(MSVCRT.dll) : error LNK2005: _fprintf already defined in
> LIBCMT.lib(fprintf.obj)
> MSVCRT.lib(MSVCRT.dll) : error LNK2005: _fflush already defined in
> LIBCMT.lib(fflush.obj)
> MSVCRT.lib(MSVCRT.dll) : error LNK2005: _memmove already defined in
> LIBCMT.lib(memmove.obj)
> MSVCRT.lib(MSVCRT.dll) : error LNK2005: _malloc already defined in
> LIBCMT.lib(malloc.obj)
> MSVCRT.lib(MSVCRT.dll) : error LNK2005: _realloc already defined in
> LIBCMT.lib(realloc.obj)
> MSVCRT.lib(MSVCRT.dll) : error LNK2005: _free already defined in
> LIBCMT.lib(free.obj)
> MSVCRT.lib(MSVCRT.dll) : error LNK2005: _ldexp already defined in
> LIBCMT.lib(ldexp.obj)
> MSVCRT.lib(MSVCRT.dll) : error LNK2005: __copysign already defined in
> LIBCMT.lib(ieeemisc.obj)
> MSVCRT.lib(MSVCRT.dll) : error LNK2005: _srand already defined in
> LIBCMT.lib(rand.obj)
> MSVCRT.lib(MSVCRT.dll) : error LNK2005: _rand already defined in
> LIBCMT.lib(rand.obj)
> LINK : warning LNK4098: defaultlib "MSVCRT" conflicts with use of other
> libs; use /NODEFAULTLIB:library
> Release/Crumpets.exe : fatal error LNK1169: one or more multiply defined
> symbols found
> Error executing link.exe.
>
> I've tried using /nodefaultlib: msvcrt and when I do that I get this:
>
> Linking...
> LINK : warning LNK4049: locally defined symbol "_exit" imported
> LINK : warning LNK4049: locally defined symbol "__snprintf" imported
> LINK : warning LNK4049: locally defined symbol "_abort" imported
> LINK : warning LNK4049: locally defined symbol "_fprintf" imported
> LINK : warning LNK4049: locally defined symbol "_fflush" imported
> LINK : warning LNK4049: locally defined symbol "__iob" imported
> LINK : warning LNK4049: locally defined symbol "_memmove" imported
> LINK : warning LNK4049: locally defined symbol "_malloc" imported
> LINK : warning LNK4049: locally defined symbol "_realloc" imported
> LINK : warning LNK4049: locally defined symbol "_free" imported
> LINK : warning LNK4049: locally defined symbol "_ldexp" imported
> LINK : warning LNK4049: locally defined symbol "__copysign" imported
> LINK : warning LNK4049: locally defined symbol "_srand" imported
> LINK : warning LNK4049: locally defined symbol "_rand" imported
> ode.lib(error.obj) : error LNK2001: unresolved external symbol
> __imp___vsnprintf
> ode.lib(error.obj) : error LNK2001: unresolved external symbol
> __imp__vfprintf
> ode.lib(collision_space.obj) : error LNK2001: unresolved external symbol
> __imp__floor
> ode.lib(collision_space.obj) : error LNK2001: unresolved external symbol
> __imp__frexp
> ode.lib(step.obj) : error LNK2001: unresolved external symbol
__imp__printf
> ode.lib(lcp.obj) : error LNK2001: unresolved external symbol __imp__printf
> Release/Crumpets.exe : fatal error LNK1120: 5 unresolved externals
> Error executing link.exe.
>
> I've built the .50 release of ODE using the included VC workspace.  The
> samples all build just fine.  Furthermore I don't get these errors if
> I'm not calling any ODE functions, but still linking to the library.
> Any suggestions or hints on using ODE with ClanLib would be greatly
> appreciated.
>
> ~Dave
> _______________________________________________
> ODE mailing list
> ODE at q12.org
> http://q12.org/mailman/listinfo/ode
>



More information about the ODE mailing list