Maya Training

Introduction to Hard Surface Modeling

Maya Training

Interiors and Furniture Vol 1 & 2 - Modeling & Cloth

Maya Training

Shading, Lighting and Rendering the Bedroom in MR

Maya Training

Robot volume one - Modeling with animation in mind

Maya Training

Spach-Alspaugh House the complete courseware

Maya Training

Burt The Cartoon Dinosaur Vol 01 - Modeling

New Maya Training

Robot Volume 02 - Hybrid Rigging
You are here > Home > SimplyMaya Community Forums
Loading

Welcome to Simply Maya

Please Sign in or Sign up for an account

Member Login

Lost your password?

Not a member yet? Sign Up!

Old 30-12-2007, 02:33 PM   #1
daviddoria
Registered User
 
Join Date: Dec 2007
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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
daviddoria is offline   Reply With Quote
Old 30-12-2007, 03:02 PM   #2
t1ck135
Registered User
 
t1ck135's Avatar
 
Join Date: May 2004
Location: UK
Posts: 1,991
Thanks: 0
Thanked 0 Times in 0 Posts
Default

no idea with plugins but a quick google on 'error LNK2019: unresolved external symbol' came up with a lot of stuff you should be able to trawl through

good luck
Simon
__________________
Examples of bTraffic - a traffic animation tool for Maya
bFlocking - a tool for Maya 8.5+ to generate flocking and swarming behaviours
Jan/Feb Challenge 2007 Entry and W.I.P
May/Jun Challenge 2006 Entry and W.I.P
Mar/Apr Challenge 2006 Entry and W.I.P
Jan/Feb Challenge 2006 Entry and W.I.P
Nov/Dec Challenge 2005 Entry and W.I.P
Sep/Oct Challenge 2005 Entry and W.I.P
Jul/Aug Challenge 2005 Entry
www.flash-fx.net
t1ck135 is offline   Reply With Quote
Old 30-12-2007, 03:05 PM   #3
daviddoria
Registered User
 
Join Date: Dec 2007
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default

ok i got it working - I wasn't in "programmer" mode, I was in "follow the directions" mode, I dont know why the maya documentation doesn't explicitly say that you have to also have:

#pragma comment(lib,"Foundation.lib")
#pragma comment(lib,"OpenMaya.lib")
#pragma comment(lib,"OpenMayaFx.lib")
#pragma comment(lib,"Image.lib")
#pragma comment(lib,"OpenMayaAnim.lib")
#pragma comment(lib,"OpenMayaUi.lib")

and c:\program files\autodesk\maya2008\lib in your additional libraries... but its going now so phew!
daviddoria is offline   Reply With Quote
Reply


Similar Threads
Thread Thread Starter Forum Replies Last Post
Model Errors Urgent advice!! sreynoso Maya Basics & Newbie Lounge 11 23-10-2014 12:39 PM

Thread Tools





A little bit about who we are
Links you might find useful
Catch up with SimplyMaya
SimplyMaya specialises in Maya tutorials. We offer over 1,000 individual Maya training videos, ranging from basic Maya tutorials through to intermediate Maya tutorials. Our tutorials are created by instructors with industry experience and are designed to get you up and running in Maya quickly without making it seem like hard work.

Copyright © 1999-2015 SimplyMaya - vBulletin® Copyright © 2000-2015, Jelsoft Enterprises Ltd.