I'm working on a little project to try to get the Source Engine 2013 code working under the Qt Creator IDE. My ultimate goal is to turn it into a CMake project to throw out Valve's limited VPC system, though I don't know exactly how that works yet, so I'm taking simple steps.
I'm used to compiling under the MSVC++ 2013 compiler, so that's what I'm using, and I've come across this one last issue, I don't know how to deal with. What I'm going for first, if it doesn't compile right under its intended compiler, I'm obviously doing it wrong, and I shouldn't have to modify the code, yet.
Valve has this memoverride.cpp which has a char *__cdecl _strdup( const char *string ), which if I comment it out, the code compiles just fine, so this is the last issue I'm dealing with.
From this function "override" I'm getting the following two errors:
C2084: function 'char MemAlloc_StrDup(const char) already has a body
C2732: linkage specification contradicts earlier specification for 'MemAlloc_StrDup'
Does anybody know of any necessary compiler option, some default library that should be excluded, or a preprocessor define I should use to get around this? I tried compiling the code in Visual Studio, and disabled the suppressed startup banner so I could see all the options it was passing, but I tried them all, but it didn't seem to make any difference.
So anybody have some idea?
Any information would be greatly appreciated, thank you!