// library.h #ifndef DYNLIB_LIBRARY_H #define DYNLIB_LIBRARY_H extern "C" { __attribute__((visibility("default"))) void printWelcomeMessage(); __attribute__((visibility("default"))) int sub(int a, int b); __attribute__((visibility("default"))) bool isEven(int num); }; #endif //DYNLIB_LIBRARY_H