Linking errors with example plugin?
here is the example i was trying to compile with visual studio 2005:
#include <maya/MSimple.h>
#include <maya/MIOStream.h>
DeclareSimpleCommand( helloWorld, "Autodesk", "2008");
MStatus helloWorld::doIt( const MArgList& )
{
cout << "Hello World\n" << endl;
return MS::kSuccess;
}
I get about 20 of these errors:
error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall MPxCommand::MPxCommand(void)" (__imp_??0MPxCommand@@QAE@XZ) referenced in function "public: __thiscall helloWorld::helloWorld(void)" (??0helloWorld@@QAE@XZ)
any suggestions?
Thanks,
David