Thanks, Rob Bateman.
I wrote the following:
MStatus SampleCmd::doIt ( const MArgList &args )
{
.....
MAnimControl control= MAnimControl();
MTime currentTime = controll.currentTime();
....
}
the compiler says:
error LNK2019: unresolved external symbol "__declspec(dllimport) public: virtual __thiscall MAnimControl::~MAnimControl(void)" (__imp_??1MAnimControl@@UAE@XZ) referenced in function "public: virtual class MStatus __thiscall SampleCmd::doIt(class MArgList const &)" (?doIt@SampleCmd@@UAE?AVMStatus@@ABVMArgList@@@Z)
error LNK2019: unresolved external symbol "__declspec(dllimport) public: static class MTime __cdecl MAnimControl::currentTime(void)" (__imp_?currentTime@MAnimControl@@SA?AVMTime@@XZ) referenced in function "public: virtual class MStatus __thiscall SampleCmd::doIt(class MArgList const &)" (?doIt@SampleCmd@@UAE?AVMStatus@@ABVMArgList@@@Z)
error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall MAnimControl::MAnimControl(void)" (__imp_??0MAnimControl@@QAE@XZ) referenced in function "public: virtual class MStatus __thiscall SampleCmd::doIt(class MArgList const &)" (?doIt@SampleCmd@@UAE?AVMStatus@@ABVMArgList@@@Z)
1>Debug\sample.mll : fatal error LNK1120: 3 unresolved externals
what is the problem here? I did #include