You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
dylib is not supposed to have any requirements from dynamic-linking libraries. They exist entirely independently of it, ignorant of its existence. So, where would they know about DYLIB_API from? ... nowhere.
As for the code linking against them, using dylib - it shouldn't have to know about that either; it just defines a function type, e.g.int(void), and get_function()'s with that.
Mhhh yes I see your point.
Originally, I made this library to facilitate my school projects.
Since we were providing both core and dlls, I used it to export/unmangle my factory functions.
But yes, dlls shouldn't include dylib just for that macro and in most cases dlls are shipped by other people than the one writing the core.
dylib is not supposed to have any requirements from dynamic-linking libraries. They exist entirely independently of it, ignorant of its existence. So, where would they know about
DYLIB_API
from? ... nowhere.As for the code linking against them, using dylib - it shouldn't have to know about that either; it just defines a function type, e.g.
int(void)
, andget_function()
's with that.So - it seems to me like this:
is unnecessary. Perhaps it belongs in the test library?
The text was updated successfully, but these errors were encountered: