MLL with shared .Lib errors

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
So I am trying to link a dll/lib into a pre-existing MLL plugin for Maya and am receiving this error
// Error: file: C:/Program Files/Autodesk/Maya2018/scripts/others/pluginWin.mel line 909: Unable to dynamically load : C:/.../Cache/frameCB/x64/Release/frameCB.mll
The specified module could not be found.
//
// Error: file: C:/Program Files/Autodesk/Maya2018/scripts/others/pluginWin.mel line 909: The specified module could not be found.
(frameCB) //
The MLL will load and run correctly unless I follow these instructions to link a dll
On Property Pages, go to C/C++->General->Additional Include Directories and provide the path, where the header file of the library that you want to use is located.
Then go to Linker->General->Additional Library Directories and specify the path, where your .lib file is located.
Finally, go to Linker->Input->Additional Dependencies and add the name of the file containing your library together with its extension (e.g. example_library.lib).
I have compiled both solutions using VS 2017 under "Release". I tried to add a PATH variable to the dll directory to no avail. Then I dropped the DLL and LIB files into the /maya/bin/ folder but that didn't work either.
What are the steps to link a static library into a Maya MLL?