Release 2.0.0 (Breaking changes) #49
martin-olivier
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Changelog
Dylib class is now RAII compliant
open()
,close()
anddefault constructor
are not available anymoreDylib constructor changes
The dylib class can now load a dynamic library from the system library path
The dylib class will now automatically add os decorations (os prefix and suffix) to the library name, but you can disable that by setting decorations parameter to false
Changes on get_function return type
The return type of
get_function
is now a function pointer instead of anstd::function
Changes on handle_error exception
handle_error
exception is now calledload_error
DYLIB_API is not available anymore
To ensure the functions and variable of your future dynamic library will be exported on windows, you can use the following macro
Or, you can add the following cmake rule that will export all symbols on windows
Cmake rule that disables lib prefixes is now useless
Since
dylib
now handles lib prefixes, you will need to remove the following cmake rule when building your dynamic libsThanks
Huge thanks to @eyalroz for his help and contributions that made this update possible !
This discussion was created from the release 2.0.0.
Beta Was this translation helpful? Give feedback.
All reactions