So, i created a mod with Source SDK with the "Half-Life 2 Single player" configuration. I opened the "Game_Episodic-2005.sln" and now when i'm trying to compile the code it turns out with errors. Is the problem Visual C++ 2010 express or something else?
Here's the BIG bunch of errors:
Error 5 error LNK2005: __malloc_dbg already defined in memoverride.obj C:\mind\src\game\client\LIBCMTD.lib(dbgheap.obj)
Error 6 error LNK2005: __nh_malloc already defined in memoverride.obj C:\mind\src\game\client\LIBCMTD.lib(dbgheap.obj)
Error 7 error LNK2005: __nh_malloc_dbg already defined in memoverride.obj C:\mind\src\game\client\LIBCMTD.lib(dbgheap.obj)
Error 8 error LNK2005: __heap_alloc already defined in memoverride.obj C:\mind\src\game\client\LIBCMTD.lib(dbgheap.obj)
Error 9 error LNK2005: __heap_alloc_dbg already defined in memoverride.obj C:\mind\src\game\client\LIBCMTD.lib(dbgheap.obj)
...And so on up to 59...
Error 60 error LNK1169: one or more multiply defined symbols found C:\mind\episodic_debug\Client.dll 1
Add /FORCE:MULTIPLE under the command-line parameters for the linker.
Is this the right thing??
[url]http://msdn.microsoft.com/en-us/library/hx5b050y.aspx[/url]
If so, it didnt work, or i'm doing it wrong.
No, in the project settings: [url]http://msdn.microsoft.com/en-us/library/70abkas3.aspx[/url]
This is so strange. That thing worked, but now there pops up more errors. nothing seems to work.
And how do i compile it? or do i build it?
You compile it by selecting compile. You build it by selecting build.
That answeres your questions, but is probably not what you wanted to know. Elaborate further.
What new errors are comig up?
Do i have to set an output directory for the compiling output. And i am seeing only a bunch of Object Files(.obj). I have no idea how that is going to change my mod..
When i press Debug with the "debug" setting it says:
Unable to start program
'C:\mind\src\game\client\..\..\..\episodic_debug\Client Episodic.dll' << "that is my output directory"
The system can not find the file specified.
Here is the errors when i press Debug with the "release" setting:
(MANY errors)
Error 3 error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '2' doesn't match value '0' in achievement_notification_panel.obj C:\mind\src\game\client\mathlib.lib(mathlib_base.obj)
Error 5 error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '2' doesn't match value '0' in achievement_notification_panel.obj C:\mind\src\game\client\mathlib.lib(vmatrix.obj)
Error 6 error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '2' doesn't match value '0' in achievement_notification_panel.obj C:\mind\src\game\client\mathlib.lib(color_conversion.obj)
Error 7 error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '2' doesn't match value '0' in achievement_notification_panel.obj C:\mind\src\game\client\mathlib.lib(sse.obj)
Error 8 error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '2' doesn't match value '0' in achievement_notification_panel.obj C:\mind\src\game\client\mathlib.lib(3dnow.obj)
Error 9 error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '2' doesn't match value '0' in achievement_notification_panel.obj C:\mind\src\game\client\tier1.lib(strtools.obj)
Error 10 error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '2' doesn't match value '0' in achievement_notification_panel.obj C:\mind\src\game\client\tier1.lib(convar.obj)
Error 11 error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '2' doesn't match value '0' in achievement_notification_panel.obj C:\mind\src\game\client\tier1.lib(KeyValues.obj)
Error 12 error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '2' doesn't match value '0' in achievement_notification_panel.obj C:\mind\src\game\client\tier1.lib(newbitbuf.obj)
Error 13 error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '2' doesn't match value '0' in achievement_notification_panel.obj C:\mind\src\game\client\tier1.lib(tier1.obj)
Error 14 error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '2' doesn't match value '0' in achievement_notification_panel.obj C:\mind\src\game\client\tier1.lib(interface.obj)
Error 15 error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '2' doesn't match value '0' in achievement_notification_panel.obj C:\mind\src\game\client\tier1.lib(utlstring.obj)
Error 16 error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '2' doesn't match value '0' in achievement_notification_panel.obj C:\mind\src\game\client\tier1.lib(datamanager.obj)
Error 17 error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '2' doesn't match value '0' in achievement_notification_panel.obj C:\mind\src\game\client\tier1.lib(rangecheckedvar.obj)
Error 18 error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '2' doesn't match value '0' in achievement_notification_panel.obj C:\mind\src\game\client\tier1.lib(byteswap.obj)
Error 19 error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '2' doesn't match value '0' in achievement_notification_panel.obj C:\mind\src\game\client\tier1.lib(memstack.obj)
Error 20 error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '2' doesn't match value '0' in achievement_notification_panel.obj C:\mind\src\game\client\tier1.lib(utlbuffer.obj)
Error 21 error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '2' doesn't match value '0' in achievement_notification_panel.obj C:\mind\src\game\client\tier1.lib(checksum_crc.obj)
Error 22 error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '2' doesn't match value '0' in achievement_notification_panel.obj C:\mind\src\game\client\tier1.lib(mempool.obj)
Error 23 error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '2' doesn't match value '0' in achievement_notification_panel.obj C:\mind\src\game\client\tier1.lib(utlsymbol.obj)
Error 24 error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '2' doesn't match value '0' in achievement_notification_panel.obj C:\mind\src\game\client\tier1.lib(characterset.obj)
Error 25 error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '2' doesn't match value '0' in achievement_notification_panel.obj C:\mind\src\game\client\tier1.lib(stringpool.obj)
Error 26 error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '2' doesn't match value '0' in achievement_notification_panel.obj C:\mind\src\game\client\tier1.lib(checksum_md5.obj)
Error 27 error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '2' doesn't match value '0' in achievement_notification_panel.obj C:\mind\src\game\client\tier1.lib(bitbuf.obj)
Error 28 error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '2' doesn't match value '0' in achievement_notification_panel.obj C:\mind\src\game\client\tier1.lib(uniqueid.obj)
Error 29 error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '2' doesn't match value '0' in achievement_notification_panel.obj C:\mind\src\game\client\mathlib.lib(randsse.obj)
Error 30 error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '2' doesn't match value '0' in achievement_notification_panel.obj C:\mind\src\game\client\mathlib.lib(ssenoise.obj)
Error 31 error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '2' doesn't match value '0' in achievement_notification_panel.obj C:\mind\src\game\client\tier1.lib(utlbufferutil.obj)
Error 32 error LNK1319: 28 mismatches detected C:\mind\src\game\client\Release_episodic\Client.dll 1
oh and... what does exactly happend when you build a program?
Try compiling in release-mode. If you're lucky then you never have to build dlls in debug-mode (you can also, though more limited, debug release-dlls). You try defining _ITERATOR_DEBUG_LEVEL as 0 in the compiler settings or something for debug-mode.
You mean how the compiler and the linker turns C++ into machine code?
So you don't know what compiling code does and you're messing with Source SDK.. Theres your problem.
[QUOTE=layla;21434969]So you don't know what compiling code does and you're messing with Source SDK.. Theres your problem.[/QUOTE]
Didn't you read the title? Source is messing with [I]him![/I]
:v:
I do apologize.
What i meant was: i don't understand what's happening when you compile a program with the "release" setting. I've always compioed with the "debug" setting.
Compiling it in debug mode produces information that can be used to debug the program (EG stepping through it, checking variable names/values ETC) a lot more in depth than if you did it in release mode
It seems to be fine. I'm changing some vars and stuff and then Ill compile it and take a look.
Also, I forgot to mention something. Because all the extra information generated in a debug build, release builds are much faster
Sorry, you need to Log In to post a reply to this thread.