Skip to content

mtupikov/DLLoader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Description

Simple multiplatform (Windows, MacOs, Linux) dll loader.

Usage

Copy DLLoader directory somewhere in your project. Make sure that your CMakeLists.txt contains add_subdirectory("DLLoader") and you link your library/executable using target_link_libraries(<your_lib> dlloader).

For successful usage you must provide interface with these two typedefs:

typedef <InterfaceName>* allocator_t();
typedef void deleter_t(<InterfaceName>*);

DLL must provide two functions with default (allocator and deleter) or specified by you names (see TestLibrary.cpp for details). In case if you want to change names of these functions don't forget to specify them in DLLoader constructor (m_allocSymbol and m_deleteSymbol, see IDLLoader.h for details).

Test

Just execute build.sh and launch binary file.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published