[Closed] [Max SDK] x64 Compile Issues
Ok, so i’m trying to compile a c++ project (straight from the wizard) and I’m getting lots of this:
Error 16 error LNK2001: unresolved external symbol "public: virtual class FPInterface * __cdecl ClassDesc::GetInterface(class Interface_ID)" (?GetInterface@ClassDesc@@UEAAPEAVFPInterface@@VInterface_ID@@@Z)
Error 27 error LNK2001: unresolved external symbol "public: __cdecl MaxSDK::Util::OutOfRangeException::OutOfRangeException(class MaxSDK::Util::OutOfRangeException const &)" (??0OutOfRangeException@Util@MaxSDK@@QEAA@AEBV012@@Z)
Error 28 error LNK2001: unresolved external symbol "public: __cdecl MaxSDK::Util::Exception::Exception(class MaxSDK::Util::Exception const &)" (??0Exception@Util@MaxSDK@@QEAA@AEBV012@@Z)
Error 32 error LNK1120: 31 unresolved externals
… etc, etc.
I’ve had to set the solution configuration to HybridUnicode(i think this is the correct one??) and 64 bit.
Max moaned trying to load the plugin compiled for 32 bit, but it did compile and i did not have the above issues, which look like linker issues. However, I’m out of my depth with the linker stuff.
Any Ideas?
Yes Hybrid is the right one because you are working with a realeased version of max.
I am not shor what the Error messages means but…
Did you build the plugin one time before you try to compile it?
Do you got the right envoriment variables?
Do you work with the plugin wizzard?
Ok, I got it working. Like an idiot I did not add the ‘maxsdk\x64\lib’ paths to the project. So I was trying to build an x64 dll with x86, precompiled, lib files… which apparently doesn’t work!