PDA

View Full Version : Building plugin with visual c++ express 2005


Jacobborsting
12-15-2009, 12:51 PM
Hi

When I try to build a 'hello world' plugin I get a lot of unresolved external symbol "__declspec(dllimport) and other stuff.

My additional library is set to: C:\Program Files\Autodesk\Maya2009\lib
and my additional depencies is set to: odbc32.lib odbccp32.lib OpenMaya.lib Foundation.lib OpenMayaUI.lib

I have tried adding:

#pragma comment(lib, "Foundation.lib");
#pragma comment(lib, "OpenMaya.lib");
#pragma comment(lib, "OpenMayaFx.lib");
#pragma comment(lib, "OpenMayaUI.lib");
#pragma comment(lib, "Image.lib");
#pragma comment(lib, "OpenMayaAnim.lib");
#pragma comment(lib, "OpenMayaRender.lib");
to my code, but it doesn't help.

Could someone point me in the right direction to get this fixed. :)

norbertnacu
12-16-2009, 07:23 AM
Hello There,
Do you mind sending your project, so we can check your settings?

Thank You,
Norbert Nacu

Jacobborsting
12-16-2009, 08:01 AM
Here's the projectfiles and buildlog.

norbertnacu
12-17-2009, 03:36 AM
Hi There,
I compiled your project using VS 2008 and it worked fine. Have you tried using a plug-in wizard?


Plug-in Wizard (http://www.creativecrash.com/maya/downloads/scripts-plugins/utility-external/misc/c/maya-plugin-wizard-for-vs2005-vs2008)


Thanks,
Norbert Nacu

CGTalk Moderation
12-17-2009, 03:36 AM
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.