PDA

View Full Version : Problems compiling Max plugins.


mridgers
10-29-2002, 09:56 AM
I have recently need to write an export plugin for Max4 using the Max SDK and Visual Studio 6. However, I can't get the plugin to link as I get the following error everytime;

unresolved external symbol "public: virtual char * __thiscall ClassDesc::GetRsrcString(long)" (?GetRsrcString@ClassDesc@@UAEPADJ@Z)

According to the Sparks knowledgebase I need Microsoft Platform SDK which I have downloaded and installed (all 1.2Gb of it). This hasn't solved the problem though. Has anyone else had this trouble and been able to resolve it?

-Martin.

antero
10-29-2002, 01:33 PM
from sparks :

Question
I can not build the samples that ship with r4. I always get an error error LNK2001: Unresolved external symbol "public virtual char *__thiscall ClassDesc::GetRsrcString(long)"(?GetRsrcString@ClassDesc@@UAEPADJ@Z)

Answer
max 4 sdk development requires installation of the MS Platform SDK. You can get it from microsoft website. The platform sdk is required to ensure forward compatibility with future releases of MS operating systems (for example the IA64). More importantly, it is required because there is a flaw in Microsoft headers that ship with Visual C++ 6.0. The problem is that Visual C++ defines INT_PTR to 'long' when it is supposed to be defined as an 'int' (on ia32 platforms). You can either use a supported build environment by updating to the platform SDK, or you can use the unsupported environment by manually fixing the problem in the header "On or around line 123 of include\basetsd.h change:

typedef long INT_PTR, *PINT_PTR; typedef unsigned long UINT_PTR, *PUINT_PTR; to
typedef int INT_PTR, *PINT_PTR; typedef unsigned int UINT_PTR, *PUINT_PTR;



end ...


Just change the line ... it worked for me :)

mridgers
10-29-2002, 07:42 PM
Genius. Worked like a dream. Cheers buddy.

CGTalk Moderation
01-13-2006, 08:01 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.