First of all I'm new to this community, but I've already had the chance to read alot of other posts while trying to fix all my compile errors. I'd just like to say that everyone here seems really awesome compared to other forums I've seen.
That being said, heres the problem I'm encountering:
I'm basically just trying to compile the standalone console app that was provided as a demo, but integrated with openGL. I'm sure that my openGL code is not the problem, as the regular console app won't compile either. I'm currently using MS VC++ 2003.net.
After including all the source and libs. I get these pretties:
Havok FiZiXSourceCommonBaseThreadCriticalSectionWin32hkWin32CriticalSection.inl(27) : error C3861: 'InitializeCriticalSectionAndSpinCount': identifier not found, even with argument-dependent lookup
Havok FiZiXSourceCommonBaseThreadCriticalSectionWin32hkWin32CriticalSection.inl(88) : error C3861: 'TryEnterCriticalSection': identifier not found, even with argument-dependent lookup
After reading some posts, I found that someone mentioned adding WINVER=0x500 and _WIN32_WINNT=0x500 to the preprocessor definitions. Certainly this seems to "work", but in turn provides new errors:
havok fizixfizix.cpp(460) : warning C4793: native code generated for function 'Update': 'aligned data types not supported in managed code'
havok fizixfizix.cpp(460) : error C2349: 'Update' cannot be compiled using /clr: 'functions containing both copy constructed arguments and inline asm are not supported'; compile without /clr
and MSDN told me to turn off my /clr ... so I disabled my Use Managed Extensions (which just didn't seem right) and got something that seems a whole lot worst:
hkBase.lib(hkSweptTransformClass.obj) : warning LNK4078: multiple '.CRT' sections found with different attributes (40300040)
hkpDynamics.lib(hkpGenericConstraintData.obj) : error LNK2019: unresolved external symbol __ftol2_sse referenced in function "protected: void __thiscall hkpGenericConstraintData::setLinearMotorW(int * &,class hkVector4 * &,class hkpGenericConstraintDataScheme &,class hkpGenericConstraintDataParameters &,class hkpConstraintQueryIn const &,class hkpConstraintQueryOut &)const " (?setLinearMotorW@hkpGenericConstraintData@@IBEXAAPAHAAPAVhkVector4@@AAVhkpGenericConstraintDataScheme@@AAVhkpGenericConstraintDataParameters@@ABVhkpConstraintQueryIn@@AAVhkpConstraintQueryOut@@@Z)
hkpUtilities.lib(hkpPulleyDrawer.obj) : error LNK2001: unresolved external symbol __ftol2_sse
hkBase.lib(hkStreamStatisticsCollector.obj) : error LNK2001: unresolved external symbol __ftol2_sse
hkBase.lib(hkMonitorStreamAnalyzer.obj) : error LNK2001: unresolved external symbol __ftol2_sse
Havok FiZiXDebugHavok FiZiX.exe : fatal error LNK1120: 1 unresolved externals
Basically, I'm not sure where I went wrong. I was really excited about using Havok and I'm facing alot of frustration now = . I hope I'm not just being incompetent, I kinda feel like I'm missing something with the 2003, because at work I was able to compile this with my VC++ 2005 during my lunch break.
Any help would be greatly apprectiated!!!