This site is a testing version, but all data is shared with the live forum.


Raised This Month: $ Target: $400
 0% 

Link Errors


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
c0ldfyr3
AlliedModders Donor
Join Date: Aug 2005
Location: Ireland
Old 12-29-2008 , 12:21   Link Errors
Reply With Quote #1

Hey,

I've been using 2005 to compile my plugin for a while now and only recently had to move machines and I only have 2003 installed on this new machine. At first I didn't remember having to use the lib-vc7 libs before but this time I was getting a bunch of link errors and realised I would need to so that I did.

Now after changing my lib folder to the vc7 folder I'm getting the link errors below which I've been able to compile with anyway by using /FORCE:MULTIPLE in my command line but I really don't like it! I got the switch from an article written by a guy who was compiling the SDK using Express 2005 so I was just trying it out when to my surprise it worked.

The reason for my worry even though it compiles fine is a new error which previously wasn't there before. When calling KeyValues::deleteThis I'm getting an access violation in free and it's mentioned below so my sights are set. This seems to be only problem I'm getting right now since down grading so if I can nail this I'm laughing.

Any help or suggestions would be greatfully appreciated!

Quote:
Originally Posted by Linker
zombie_mm warning LNK4098: defaultlib 'LIBCMTD' conflicts with use of other libs; use /NODEFAULTLIB:library
zombie_mm warning LNK4075: ignoring '/EDITANDCONTINUE' due to '/INCREMENTAL:NO' specification
zombie_mm error LNK2005: _malloc already defined in LIBCMT.lib(malloc.obj)
zombie_mm error LNK2005: __nh_malloc already defined in LIBCMT.lib(malloc.obj)
zombie_mm error LNK2005: __heap_alloc already defined in LIBCMT.lib(malloc.obj)
zombie_mm error LNK2005: _calloc already defined in LIBCMT.lib(calloc.obj)
zombie_mm error LNK2005: _realloc already defined in LIBCMT.lib(realloc.obj)
zombie_mm error LNK2005: _free already defined in LIBCMT.lib(free.obj)
zombie_mm error LNK2005: __msize already defined in LIBCMT.lib(msize.obj)
Found __heap_alloc_base
Referenced in LIBCMTD.lib(dbgheap.obj)
Loaded LIBCMTD.lib(malloc.obj)
Found __pfnAllocHook
Referenced in LIBCMTD.lib(dbgheap.obj)
Loaded LIBCMTD.lib(dbghook.obj)
Found __CrtDbgReport
Referenced in LIBCMTD.lib(dbgheap.obj)
Loaded LIBCMTD.lib(dbgrpt.obj)
Found __expand_base
Referenced in LIBCMTD.lib(dbgheap.obj)
Loaded LIBCMTD.lib(expand.obj)
Found __realloc_base
Referenced in LIBCMTD.lib(dbgheap.obj)
Loaded LIBCMTD.lib(realloc.obj)
Found __free_base
Referenced in LIBCMTD.lib(dbgheap.obj)
Referenced in LIBCMTD.lib(realloc.obj)
Loaded LIBCMTD.lib(free.obj)
Found ___sbh_verify_block
Referenced in LIBCMTD.lib(dbgheap.obj)
Loaded LIBCMTD.lib(sbheap.obj)
zombie_mm error LNK2005: __get_sbh_threshold already defined in LIBCMT.lib(sbheap.obj)
zombie_mm error LNK2005: __set_sbh_threshold already defined in LIBCMT.lib(sbheap.obj)
zombie_mm error LNK2005: ___sbh_heap_init already defined in LIBCMT.lib(sbheap.obj)
zombie_mm error LNK2005: ___sbh_find_block already defined in LIBCMT.lib(sbheap.obj)
zombie_mm error LNK2005: ___sbh_free_block already defined in LIBCMT.lib(sbheap.obj)
zombie_mm error LNK2005: ___sbh_alloc_block already defined in LIBCMT.lib(sbheap.obj)
zombie_mm error LNK2005: ___sbh_alloc_new_region already defined in LIBCMT.lib(sbheap.obj)
zombie_mm error LNK2005: ___sbh_alloc_new_group already defined in LIBCMT.lib(sbheap.obj)
zombie_mm error LNK2005: ___sbh_resize_block already defined in LIBCMT.lib(sbheap.obj)
zombie_mm error LNK2005: ___sbh_heapmin already defined in LIBCMT.lib(sbheap.obj)
zombie_mm error LNK2005: ___sbh_heap_check already defined in LIBCMT.lib(sbheap.obj)
Found _sprintf
Referenced in LIBCMTD.lib(dbgheap.obj)
Loaded LIBCMTD.lib(sprintf.obj)
Found __chvalidator_mt
Referenced in LIBCMTD.lib(dbgheap.obj)
Loaded LIBCMTD.lib(isctype.obj)
zombie_mm error LNK2005: __isctype already defined in LIBCMT.lib(isctype.obj)
zombie_mm error LNK2005: ___isctype_mt already defined in LIBCMT.lib(isctype.obj)
Searching G:\C\hl2sdk\cstrike\lib-vc7\public\tier0.lib:
Searching G:\C\hl2sdk\cstrike\lib-vc7\public\tier1.lib:
Searching G:\C\hl2sdk\cstrike\lib-vc7\public\vstdlib.lib:
Searching C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\lib\kernel32.lib:
Found _RtlUnwind@16
Referenced in LIBCMT.lib(trnsctrl.obj)
Referenced in LIBCMT.lib(exsup.obj)
Loaded kernel32.lib(KERNEL32.dll)
Found __imp__ExitProcess@4
Referenced in LIBCMT.lib(secchk.obj)
Referenced in LIBCMT.lib(crt0dat.obj)
Loaded kernel32.lib(KERNEL32.dll)
Found __imp__HeapAlloc@12
Referenced in LIBCMT.lib(pdblkup.obj)
Referenced in LIBCMTD.lib(malloc.obj)
Referenced in LIBCMTD.lib(realloc.obj)
Referenced in LIBCMTD.lib(sbheap.obj)
Referenced in LIBCMT.lib(malloc.obj)
Referenced in LIBCMT.lib(calloc.obj)
Referenced in LIBCMT.lib(realloc.obj)
Referenced in LIBCMT.lib(sbheap.obj)
Loaded kernel32.lib(KERNEL32.dll)
Found __imp__HeapFree@12
Referenced in LIBCMTD.lib(free.obj)
Referenced in LIBCMTD.lib(sbheap.obj)
Referenced in LIBCMT.lib(free.obj)
Referenced in LIBCMT.lib(heapinit.obj)
Referenced in LIBCMT.lib(sbheap.obj)
Referenced in LIBCMT.lib(pdblkup.obj)
Loaded kernel32.lib(KERNEL32.dll)
Found __imp__GetSystemTimeAsFileTime@4
Referenced in LIBCMT.lib(time.obj)
Referenced in LIBCMT.lib(seccinit.obj)
Loaded kernel32.lib(KERNEL32.dll)
Found __imp__GetCurrentThreadId@0
Referenced in LIBCMT.lib(dllcrt0.obj)
Referenced in LIBCMT.lib(tidtable.obj)
Referenced in LIBCMT.lib(seccinit.obj)
Loaded kernel32.lib(KERNEL32.dll)
Found __imp__GetCommandLineA@0
Referenced in LIBCMT.lib(dllcrt0.obj)
Loaded kernel32.lib(KERNEL32.dll)
Found __imp__GetVersionExA@4
Refe
zombie_mm warning LNK4006: _malloc already defined in LIBCMT.lib(malloc.obj); second definition ignored
zombie_mm warning LNK4006: __nh_malloc already defined in LIBCMT.lib(malloc.obj); second definition ignored
zombie_mm warning LNK4006: __heap_alloc already defined in LIBCMT.lib(malloc.obj); second definition ignored
zombie_mm warning LNK4006: _calloc already defined in LIBCMT.lib(calloc.obj); second definition ignored
zombie_mm warning LNK4006: _realloc already defined in LIBCMT.lib(realloc.obj); second definition ignored
zombie_mm warning LNK4006: _free already defined in LIBCMT.lib(free.obj); second definition ignored
zombie_mm warning LNK4006: __msize already defined in LIBCMT.lib(msize.obj); second definition ignored
Found __heap_alloc_base
Referenced in LIBCMTD.lib(dbgheap.obj)
Loaded LIBCMTD.lib(malloc.obj)
Found __pfnAllocHook
Referenced in LIBCMTD.lib(dbgheap.obj)
Loaded LIBCMTD.lib(dbghook.obj)
Found __CrtDbgReport
Referenced in LIBCMTD.lib(dbgheap.obj)
Loaded LIBCMTD.lib(dbgrpt.obj)
Found __expand_base
Referenced in LIBCMTD.lib(dbgheap.obj)
Loaded LIBCMTD.lib(expand.obj)
Found __realloc_base
Referenced in LIBCMTD.lib(dbgheap.obj)
Loaded LIBCMTD.lib(realloc.obj)
Found __free_base
Referenced in LIBCMTD.lib(dbgheap.obj)
Referenced in LIBCMTD.lib(realloc.obj)
zombie_mm warning LNK4006: __get_sbh_threshold already defined in LIBCMT.lib(sbheap.obj); second definition ignored
zombie_mm warning LNK4006: __set_sbh_threshold already defined in LIBCMT.lib(sbheap.obj); second definition ignored
zombie_mm warning LNK4006: ___sbh_heap_init already defined in LIBCMT.lib(sbheap.obj); second definition ignored
zombie_mm warning LNK4006: ___sbh_find_block already defined in LIBCMT.lib(sbheap.obj); second definition ignored
zombie_mm warning LNK4006: ___sbh_free_block already defined in LIBCMT.lib(sbheap.obj); second definition ignored
zombie_mm warning LNK4006: ___sbh_alloc_block already defined in LIBCMT.lib(sbheap.obj); second definition ignored
zombie_mm warning LNK4006: ___sbh_alloc_new_region already defined in LIBCMT.lib(sbheap.obj); second definition ignored
zombie_mm warning LNK4006: ___sbh_alloc_new_group already defined in LIBCMT.lib(sbheap.obj); second definition ignored
zombie_mm warning LNK4006: ___sbh_resize_block already defined in LIBCMT.lib(sbheap.obj); second definition ignored
zombie_mm warning LNK4006: ___sbh_heapmin already defined in LIBCMT.lib(sbheap.obj); second definition ignored
zombie_mm warning LNK4006: ___sbh_heap_check already defined in LIBCMT.lib(sbheap.obj); second definition ignored
Found _sprintf
Referenced in LIBCMTD.lib(dbgheap.obj)
Loaded LIBCMTD.lib(sprintf.obj)
Found __chvalidator_mt
Referenced in LIBCMTD.lib(dbgheap.obj)
Loaded LIBCMTD.lib(isctype.obj)
zombie_mm warning LNK4006: __isctype already defined in LIBCMT.lib(isctype.obj); second definition ignored
zombie_mm warning LNK4006: ___isctype_mt already defined in LIBCMT.lib(isctype.obj); second definition ignored
Searching G:\C\hl2sdk\cstrike\lib-vc7\public\tier0.lib:
Searching G:\C\hl2sdk\cstrike\lib-vc7\public\tier1.lib:
Searching G:\C\hl2sdk\cstrike\lib-vc7\public\vstdlib.lib:
Searching C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\lib\kernel32.lib:
Found __imp__GetCurrentThreadId@0
Referenced in LIBCMT.lib(dllcrt0.obj)
Referenced in LIBCMT.lib(tidtable.obj)
Referenced in LIBCMT.lib(seccinit.obj)
Loaded kernel32.lib(KERNEL32.dll)
Found __imp__GetCommandLineA@0
Referenced in LIBCMT.lib(dllcrt0.obj)
Loaded kernel32.lib(KERNEL32.dll)
Found __imp__GetVersionExA@4
Referenced in LIBCMT.lib(dllcrt0.obj)
Referenced in LIBCMT.lib(error.obj)
Loaded kernel32.lib(KERNEL32.dll)
Found _RtlUnwind@16
Referenced in LIBCMT.lib(trnsctrl.obj)
Referenced in LIBCMT.lib(exsup.obj)
Loaded kernel32.lib(KERNEL32.dll)
Found __imp__ExitProcess@4
Referenced in LIBCMT.lib(secchk.obj)
Referenced in LIBCMT.lib(crt0dat.obj)
Loaded kernel32.lib(KERNEL32.dll)
Found __imp__HeapAlloc@12
Referenced in LIBCMT.lib(pdblkup.obj)
Referenced in LIBCMTD.lib(malloc.obj)
Referenced in LIBCMTD.lib(realloc.obj)
Referenced in LIBCMTD.lib(sbheap.obj)
Referenced in LIBCMT.lib(malloc.obj)
Referenced in LIBCMT.lib(calloc.obj)
Referenced in LIBCMT.lib(realloc.obj)
Referenced in LIBCMT.lib(sbheap.obj)
Loaded kernel32.lib(KERNEL32.dll)
Found __imp__HeapFree@12
Referenced in LIBCMTD.lib(free.obj)
Referenced in LIBCMTD.lib(sbheap.obj)
Referenced in LIBCMT.lib(free.obj)
Referenced in LIBCMT.lib(heapinit.obj)
Referenced in LIBCMT.lib(sbheap.obj)
Referenced in LIBCMT.lib(pdblkup.obj)
Loaded kernel32.lib(KERNEL32.dll)
Found __imp__GetSystem
__________________
c0ldfyr3 is offline
Send a message via MSN to c0ldfyr3 Send a message via Yahoo to c0ldfyr3
BAILOPAN
Join Date: Jan 2004
Old 12-29-2008 , 13:06   Re: Link Errors
Reply With Quote #2

If you're using HL2SDK-OB or higher, you should use VS2k5.

In any event, it sounds like you need an Ignore Default Lib entry for LIBCMT? Or something.
__________________
egg
BAILOPAN is offline
c0ldfyr3
AlliedModders Donor
Join Date: Aug 2005
Location: Ireland
Old 12-29-2008 , 13:34   Re: Link Errors
Reply With Quote #3

Hey BAIL I'm using the old SDK I've no need at the moment to compile for OB so I was assuming 2003 will suffice for now, this current setup is temporary to get a couple of bug fixes out the door and then hopefully I'll be back to my normal setup.

As for ignoring default per lib, do you know how that's done? I can disable default library overall but that leaves me with a lot of undefined externals so I'm guessing I need to do it for this one only... I'll do a search in a couple of mins when I get a chance.

Thanks again for all your help!
__________________
c0ldfyr3 is offline
Send a message via MSN to c0ldfyr3 Send a message via Yahoo to c0ldfyr3
Reply



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


All times are GMT -4. The time now is 04:54.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode