Linking to an external library
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm writing a global utility plugin and I want to use OpenImageIO library. The obvious solution is to create the plugin executable, statically linking against the static OIIO library, which ends up with one executable, but I'm having a hard time making this approach work, because of the library-specific errors that I'm getting.
Until I solve this, I want to dynamically link to OIIO library at load-time, but I don't know how to do that properly.
The OIIO library requires 14 dependencies (e.g. boost_filesysten-vc142-mt-x64-1_70.dll, IlmImf-2_3.dll, jpeg62.dll, etc.)
I'm using vcpkg, so all these .dlls are automatically copied to where the plugin .dll is in 3ds Max 2020/Plugins, but I'm still getting the following error when the plugin is loaded.