[speex-dev] compiling in windows
Tom Newbern
tom at shipstone.com
Thu Aug 28 17:33:04 PDT 2003
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 at xiph.org [mailto:owner-speex-dev at xiph.org]On Behalf
Of Nick
Sent: Thursday, August 28, 2003 5:05 PM
To: speex-dev at 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 at xiph.org'
containing only the word 'unsubscribe' in the body. No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.
More information about the Speex-dev
mailing list