Link errors MPxContext
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am trying to compile some of the some sample plugins from the Maya 2016 dev kit. Many build completely but any using MPxContext (lassoTool, MarqueTool) encounter link errors (see below). I am using VS 2013 and Maya 20i6 SP 6. Has any one encounter this problem? Any recommendations on how to fix?
I have double checked that I have all the proper libs and include paths. See my build options below:
/OUT:"x64\Debug\marqueeTool.mll" /MANIFEST /NXCOMPAT /PDB:"x64\Debug\marqueeTool.pdb" /DYNAMICBASE:NO "OpenMaya.lib" "OpenMayaUI.lib" "OpenMayaRender.lib" "Foundation.lib" "opengl32.lib" "glu32.lib" "kernel32.lib" "user32.lib" "gdi32.lib" "winspool.lib" "comdlg32.lib" "advapi32.lib" "shell32.lib" "ole32.lib" "oleaut32.lib" "uuid.lib" "odbc32.lib" "odbccp32.lib" /IMPLIB:"x64\Debug\marqueeTool.lib" /DEBUG /DLL /MACHINE:X64 /INCREMENTAL /PGD:"x64\Debug\marqueeTool.pgd" /SUBSYSTEM:WINDOWS /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /ManifestFile:"x64\Debug\marqueeTool.mll.intermediate.manifest" /ERRORREPORT:PROMPT /NOLOGO /LIBPATH:"..\..\..\lib" /LIBPATH:"..\..\..\..\lib" /TLBID:1
Error 1 error LNK2001: unresolved external symbol "public: virtual class MStatus __cdecl MPxContext::doPtrMoved(class MEvent &)" (?doPtrMoved@MPxContext@@UEAA?AVMStatus@@AEAVMEvent@@@Z) C:\Program Files\Autodesk\Maya2016\devkit\plug-ins\marqueeTool\marqueeTool.obj marqueeTool
Error 2 error LNK2001: unresolved external symbol "public: virtual class MStatus __cdecl MPxContext::doPtrMoved(class MEvent &,class MHWRender::MUIDrawManager &,class MHWRender::MFrameContext const &)" (?doPtrMoved@MPxContext@@UEAA?AVMStatus@@AEAVMEvent@@AEAVMUIDrawManager@MHWRender@@AEBVMFrameContext@5@@Z) C:\Program Files\Autodesk\Maya2016\devkit\plug-ins\marqueeTool\marqueeTool.obj marqueeTool
Error 3 error LNK1120: 2 unresolved externals C:\Program Files\Autodesk\Maya2016\devkit\plug-ins\marqueeTool\x64\Debug\marqueeTool.mll marqueeTool