<p><p>Hi, I'm trying to compile speex in windows and I get this error: Linking...MSVCRTD.lib(MSVCRTD.dll) : error LNK2005: _malloc 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: _memmove already defined in LIBCD.lib(memmove.obj)MSVCRTD.lib(MSVCRTD.dll) : error LNK2005: _realloc already defined in LIBCD.lib(dbgheap.obj)LINK : warning LNK4098: defaultlib "MSVCRTD" conflicts with use of other libs; use /NODEFAULTLIB:libraryDebug/speexenc.exe : fatal error LNK1169: one or more multiply defined symbols foundError executing link.exe. If I ignore msvcrtd.lib I get this error:Linking...LINK : warning LNK4049: locally defined symbol "_malloc" importedLINK : warning LNK4049: locally defined symbol "_free" importedLINK : warning LNK4049: locally defined symbol "_memmove" importedLINK : warning LNK4049: locally defined symbol "_realloc" importedogg_static.lib(framing.obj) : error LNK2001: unresolved ext ernal symbol __imp__memchrDebug/xp2.exe : fatal error LNK1120: 1 unresolved externalsError executing link.exe. If I ignore libcd.lib it compiles ok, but I get a fatal runtime error. Anybody know what I'm doing wrong?Thanks,Nick _______________________________________________ Join Excite! - http://www.excite.com The most personalized portal on the Web! --- >8 ---- List archives: http://www.xiph.org/archives/ Ogg project homepage: http://www.xiph.org/ogg/ To unsubscribe from this list, send a message to 'speex-dev-request@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.
I've got no experience in windows development, but I think this is probably a problem with your setup or the compiling options and not with the code itself. Jean-Marc Le jeu 28/08/2003 à 17:05, Nick a écrit :> Hi, > > I'm trying to compile speex in windows and I get this error: > > Linking... > MSVCRTD.lib(MSVCRTD.dll) : error LNK2005: _malloc 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: _memmove already defined in > LIBCD.lib(memmove.obj) > MSVCRTD.lib(MSVCRTD.dll) : error LNK2005: _realloc already defined in > LIBCD.lib(dbgheap.obj) > LINK : warning LNK4098: defaultlib "MSVCRTD" conflicts with use of > other libs; use /NODEFAULTLIB:library > Debug/speexenc.exe : fatal error LNK1169: one or more multiply defined > symbols found > Error executing link.exe. > > If I ignore msvcrtd.lib I get this error: > Linking... > LINK : warning LNK4049: locally defined symbol "_malloc" imported > LINK : warning LNK4049: locally defined symbol "_free" imported > LINK : warning LNK4049: locally defined symbol " _memmove" imported > LINK : warning LNK4049: locally defined symbol "_realloc" imported > ogg_static.lib(framing.obj) : error LNK2001: unresolved external > symbol __imp__memchr > Debug/xp2.exe : fatal error LNK1120: 1 unresolved externals > Error executing link.exe. > > If I ignore libcd.lib it compiles ok, but I get a fatal runtime error. > > Anybody know what I'm doing wrong? > Thanks, > Nick > > > ______________________________________________________________________ > Join Excite! - http://www.excite.com > The most personalized portal on the Web!-- Jean-Marc Valin, M.Sc.A., ing. jr. LABORIUS (http://www.gel.usherb.ca/laborius) Université de Sherbrooke, Québec, Canada -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 190 bytes Desc: Ceci est une partie de message numériquement signée Url : http://lists.xiph.org/pipermail/speex-dev/attachments/20030828/97f2a69d/signature-0001.pgp
I found that the ogg project was setup to use the DEBUG multi-threaded dll and the speexenc, speexdec and libspeex are configured to use the DEBUG single-threaded runtime libraries. Make sure in your workspace all the projects have the same setting for the run-time libraries. It is located in project settings on the c/c++ tab under Use run-time library drop box. The command line option is /MXd where the X is either L, T or D. I use /MLd. Hope this helps. -----Original Message----- From: owner-speex-dev@xiph.org [mailto:owner-speex-dev@xiph.org]On Behalf Of Nick Sent: Thursday, August 28, 2003 5:05 PM To: speex-dev@xiph.org Subject: [speex-dev] compiling in windows <p> Hi, I'm trying to compile speex in windows and I get this error: Linking... MSVCRTD.lib(MSVCRTD.dll) : error LNK2005: _malloc 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: _memmove already defined in LIBCD.lib(memmove.obj) MSVCRTD.lib(MSVCRTD.dll) : error LNK2005: _realloc already defined in LIBCD.lib(dbgheap.obj) LINK : warning LNK4098: defaultlib "MSVCRTD" conflicts with use of other libs; use /NODEFAULTLIB:library Debug/speexenc.exe : fatal error LNK1169: one or more multiply defined symbols found Error executing link.exe. If I ignore msvcrtd.lib I get this error: Linking... LINK : warning LNK4049: locally defined symbol "_malloc" imported LINK : warning LNK4049: locally defined symbol "_free" imported LINK : warning LNK4049: locally defined symbol " _memmove" imported LINK : warning LNK4049: locally defined symbol "_realloc" imported ogg_static.lib(framing.obj) : error LNK2001: unresolved external symbol __imp__memchr Debug/xp2.exe : fatal error LNK1120: 1 unresolved externals Error executing link.exe. If I ignore libcd.lib it compiles ok, but I get a fatal runtime error. Anybody know what I'm doing wrong? Thanks, Nick <p><p><p><p><p>---------------------------------------------------------------------------- -- Join Excite! - http://www.excite.com The most personalized portal on the Web! <p>--- >8 ---- List archives: http://www.xiph.org/archives/ Ogg project homepage: http://www.xiph.org/ogg/ To unsubscribe from this list, send a message to 'speex-dev-request@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.