Differences between Linux and Windows
- On Linux, pugg uses libdl.
- On Windows, pugg uses the kernel32 dynamic loading API.
libdl
For your plugin to be found by libdl:
- You must pass a full path to loadPlugin (for example: loadPlugin("./animals.so")) OR
- The plugin library must be in the path that is searched by the dynamic linker (LD_SEARCH_PATH).
If you get a segmentation fault while running your application, and it is in one
of the libdl functions, check your search paths.
Note: [#18] should add a way to specify a search directory in a platform-independent way.
kernel32
Check the MSDN library page.