[ODE] Compiling issues in VC++ 6.0

gl gl at ntlworld.com
Fri Mar 26 16:50:09 MST 2004


It's the first thing I mentioned - a C runtime mismatch.  Make sure that all
projects (including Opcode) use the same type (although you can use the
Debug version of each type for debug buidls).

You set this for each project in Project Menu -> Settings -> C/C++ -> Code
Generation.-> Use Runtime Library.
--
gl


----- Original Message ----- 
From: J Rod
To: ode at q12.org
Sent: Friday, March 26, 2004 3:43 PM
Subject: Re: [ODE] Compiling issues in VC++ 6.0


Alright, I compiled the OPCODE library and am linking that in there as well
now.  I'm a bit unclear on what exactly I need to do to fix the other
errors, as follows:

Linking...
MSVCRTD.lib(MSVCRTD.dll) : error LNK2005: _exit already defined in
LIBCD.lib(crt0dat.obj)
MSVCRTD.lib(MSVCRTD.dll) : error LNK2005: __vsnprintf already defined in
LIBCD.lib(vsnprint.obj)
MSVCRTD.lib(MSVCRTD.dll) : error LNK2005: __snprintf already defined in
LIBCD.lib(snprintf.obj)
MSVCRTD.lib(MSVCRTD.dll) : error LNK2005: _abort already defined in
LIBCD.lib(abort.obj)
MSVCRTD.lib(MSVCRTD.dll) : error LNK2005: _vfprintf already defined in
LIBCD.lib(vfprintf.obj)
MSVCRTD.lib(MSVCRTD.dll) : error LNK2005: _fprintf already defined in
LIBCD.lib(fprintf.obj)
MSVCRTD.lib(MSVCRTD.dll) : error LNK2005: _fflush already defined in
LIBCD.lib(fflush.obj)
MSVCRTD.lib(MSVCRTD.dll) : error LNK2005: _memmove already defined in
LIBCD.lib(memmove.obj)
MSVCRTD.lib(MSVCRTD.dll) : error LNK2005: _malloc already defined in
LIBCD.lib(dbgheap.obj)
MSVCRTD.lib(MSVCRTD.dll) : error LNK2005: _realloc already defined in
LIBCD.lib(dbgheap.obj)
MSVCRTD.lib(MSVCRTD.dll) : error LNK2005: _free already defined in
LIBCD.lib(dbgheap.obj)
MSVCRTD.lib(MSVCRTD.dll) : error LNK2005: _printf already defined in
LIBCD.lib(printf.obj)
LINK : warning LNK4098: defaultlib "MSVCRTD" conflicts with use of other
libs; use /NODEFAULTLIB:library
LIBCD.lib(crt0init.obj) : warning LNK4098: defaultlib "libcmtd.lib"
conflicts with use of other libs; use /NODEFAULTLIB:library
Debug/Main.exe : fatal error LNK1169: one or more multiply defined symbols
found
Error executing link.exe.
Main.exe - 13 error(s), 2 warning(s)

Thanks.

gl <gl at ntlworld.com> wrote:

  Hi,

  the first lot is a mismatch of the C runtime library. The VC6 project (if
  it's mine) defaults to (Debug) Multithreaded DLL, but you can change that.
  Simply adjust either project to match the other.

  The 2nd looks like you're not linking in the Opcode lib. Is the Opcode
  project inserted into your workspace? If not, you'll have to link with it
  manually.
  --
  gl


----------------------------------------------------------------------------
----
Do you Yahoo!?
Yahoo! Finance Tax Center - File online. File on time.


----------------------------------------------------------------------------
----


_______________________________________________
ODE mailing list
ODE at q12.org
http://q12.org/mailman/listinfo/ode



More information about the ODE mailing list