Skip to main content
GameDev.net gamedev.net
🔒 Locked 🤖 Godot

dll linking error

Started by rajiv6ce Jun 27, 2004 at 10:04 AM 4 replies 1.4k views
Original Post
rajiv6ce
rajiv6ce
Dear all, I get a following linking error....I am working on VS.NET...can n e one tell why thi occurs and how can it be eliminated.... HanimCompute.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) class std::basic_ostream > & __cdecl operator<<(class std::basic_ostream > &,class MString const &)" (__imp_??6@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@std@@AAV01@ABVMString@@@Z) referenced in function "public: virtual class MStatus __thiscall snMHanimator4Node::compute(class MPlug const &,class MDataBlock &)" (?compute@snMHanimator4Node@@UAE?AVMStatus@@ABVMPlug@@AAVMDataBlock@@@Z) HanimNode.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) class std::basic_ostream > & __cdecl operator<<(class std::basic_ostream > &,class MString const &)" (__imp_??6@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@std@@AAV01@ABVMString@@@Z) Thanks, Raj
TangentZ
TangentZ
It looks to me you're using some custom MString class?

Did you forget to link in the definition of operator<<() for
MString?
神はサイコロを振らない!
rajiv6ce
rajiv6ce
I am using the maya MString class and it shuld be linked by default....

I do something like this

MStatus compute( const MPlug& plug, MDataBlock& data )
{
MStatus stat;
MString str = plug.info();
std::cout << "--- " << str << " plug" << std::endl;
}

what could be the problem...

R
SupeyBits
SupeyBits
It looks like you forgot to link a library somewhere. YOu need to put it in the link->input fields or use the #pragma to include the library at link stage.
CloudNine
CloudNine
Are you actually sure there is a << operator defined for the MString class?
TangentZ
TangentZ
To the OP, if you changed the title of this thread to something
like "How do I link in the Maya SDK libraries?", then maybe
someone with experience can help you out.

"dll linking error" is too generic.

Sorry, but I have never used Maya SDK before...
神はサイコロを振らない!

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.