J
Jon
Hi!
I have a problem that have followed me for a long time.
When linking, sometimes this link error below arises. My solution is
always to remove all files in the project, throw away all debug-files
(.obj), rebuild, insert all files in the project and rebuild. After that
procedure, the linker usually proceed.
But not this time. So I decided to try and find the real problem, but
failed. So here I am.
When Linking in debug-mode, this error below comes up. When linking in
release-mode, everything works fine. So, according to helpfiles, this is
some mix-up with debug and release libraries. Just that I can't figure it
out by myself.
I hope someone can help me solve this!
The errormessage:
--------------------Configuration: SH03 - Win32 Debug--------------------
Linking...
nafxcwd.lib(afxmem.obj) : error LNK2005: "void * __cdecl operator
new(unsigned int)" (??2@YAPAXI@Z) already defined in LIBCD.lib(new.obj)
nafxcwd.lib(afxmem.obj) : error LNK2005: "void __cdecl operator
delete(void *)" (??3@YAXPAX@Z) already defined in LIBCD.lib(dbgdel.obj)
nafxcwd.lib(thrdcore.obj) : error LNK2001: unresolved external symbol
__endthreadex
nafxcwd.lib(thrdcore.obj) : error LNK2001: unresolved external symbol
__beginthreadex
Debug/SH03.exe : fatal error LNK1120: 2 unresolved externals
Error executing link.exe.
SH03.exe - 5 error(s), 0 warning(s)
Here are the libraries that I include in the project:
dxguid.lib dsound.lib ddraw.lib dinput.lib winmm.lib comctl32.lib
msacm32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib
advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib
odbccp32.lib
Thank's for any help!
Jon Lennryd
I have a problem that have followed me for a long time.
When linking, sometimes this link error below arises. My solution is
always to remove all files in the project, throw away all debug-files
(.obj), rebuild, insert all files in the project and rebuild. After that
procedure, the linker usually proceed.
But not this time. So I decided to try and find the real problem, but
failed. So here I am.
When Linking in debug-mode, this error below comes up. When linking in
release-mode, everything works fine. So, according to helpfiles, this is
some mix-up with debug and release libraries. Just that I can't figure it
out by myself.
I hope someone can help me solve this!
The errormessage:
--------------------Configuration: SH03 - Win32 Debug--------------------
Linking...
nafxcwd.lib(afxmem.obj) : error LNK2005: "void * __cdecl operator
new(unsigned int)" (??2@YAPAXI@Z) already defined in LIBCD.lib(new.obj)
nafxcwd.lib(afxmem.obj) : error LNK2005: "void __cdecl operator
delete(void *)" (??3@YAXPAX@Z) already defined in LIBCD.lib(dbgdel.obj)
nafxcwd.lib(thrdcore.obj) : error LNK2001: unresolved external symbol
__endthreadex
nafxcwd.lib(thrdcore.obj) : error LNK2001: unresolved external symbol
__beginthreadex
Debug/SH03.exe : fatal error LNK1120: 2 unresolved externals
Error executing link.exe.
SH03.exe - 5 error(s), 0 warning(s)
Here are the libraries that I include in the project:
dxguid.lib dsound.lib ddraw.lib dinput.lib winmm.lib comctl32.lib
msacm32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib
advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib
odbccp32.lib
Thank's for any help!
Jon Lennryd