Menu

Plugin Loading Implementation

Alex

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.


Related

Bugs: #18
Wiki: Home

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.