|
|
#1 |
|
Junior Member
|
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.
|
|
|
|
|
|
#2 |
|
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.
|
|
|
|
|
|
#3 |
|
Junior Member
|
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. |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|