Go Back   Winamp Forums > Developer Center > Winamp Development

Reply
Thread Tools Search this Thread Display Modes
Old 18th December 2003, 02:41   #1
FunkyT
Junior Member
 
Join Date: Nov 2003
Posts: 16
Send a message via ICQ to FunkyT
Trouble with linking in_faad.dll decoder

I'm trying to compile an faad input plugin decoder for winamp2. However, during the linking process i encounter this error:

--------------------Configuration: in_faad - Win32 Debug--------------------
Linking...
MSVCRTD.lib(MSVCRTD.dll) : error LNK2005: _malloc already defined in LIBCMTD.lib(dbgheap.obj)
MSVCRTD.lib(MSVCRTD.dll) : error LNK2005: _free already defined in LIBCMTD.lib(dbgheap.obj)
MSVCRTD.lib(MSVCRTD.dll) : warning LNK4006: _malloc already defined in LIBCMTD.lib(dbgheap.obj); second definition ignored
MSVCRTD.lib(MSVCRTD.dll) : warning LNK4006: _free already defined in LIBCMTD.lib(dbgheap.obj); second definition ignored
Creating library Debug/in_faad.lib and object Debug/in_faad.exp
LINK : warning LNK4098: defaultlib "LIBCD" conflicts with use of other libs; use /NODEFAULTLIB:library
LINK : warning LNK4098: defaultlib "MSVCRTD" conflicts with use of other libs; use /NODEFAULTLIB:library
Debug/in_faad.dll : fatal error LNK1169: one or more multiply defined symbols found
Error executing link.exe.

in_faad.dll - 3 error(s), 4 warning(s)

Unofrtunately, if i exclude the libraries MSVCRTD.lib and LIBCMTD.lib, i will end up with unresolved externals that are needed in the program.

If i'm not wrong i need to locate the locally defined malloc() and free() functions, but i cant seem to locate them.
FunkyT is offline   Reply With Quote
Old 18th December 2003, 12:47   #2
Maxim
Senior Member
 
Join Date: Mar 2001
Location: smspower.org
Posts: 107
The whole point is that both of these libraries have those functions in them - remove one from the project (I'd go for libcmtd) and it will have just one definition and all will be well.
Maxim is offline   Reply With Quote
Old 18th December 2003, 14:55   #3
FunkyT
Junior Member
 
Join Date: Nov 2003
Posts: 16
Send a message via ICQ to FunkyT
I needed to exclude libcd.lib and libcmtd.lib, unfortunately 2 unresolved externals popped up.

--------------------Configuration: in_faad - Win32 Debug--------------------
Linking...
Creating library Debug/in_faad.lib and object Debug/in_faad.exp
filestream.obj : error LNK2001: unresolved external symbol __pctype
filestream.obj : error LNK2001: unresolved external symbol ___mb_cur_max
Debug/in_faad.dll : fatal error LNK1120: 2 unresolved externals
Error executing link.exe.

in_faad.dll - 3 error(s), 0 warning(s)

I've tried different combinations of excluding the libs but it's either unresolved externals or multiple definitions of malloc and free.
FunkyT is offline   Reply With Quote
Reply
Go Back   Winamp Forums > Developer Center > Winamp Development

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump