I found out what is causing it, but I don't know how to fix it, other than turn the warning off.
This link describes the problem I am having.
https://stackoverflow.com/questio...shared-library-functions-in-linux
Replace EXPORT in the code below with the LIBNAME_API I was talking about above and you get the idea.
1
2
3
4
5
6
7
8
9
10
11
12
13
14 | #if defined(_MSC_VER)
// Microsoft
#define EXPORT __declspec(dllexport)
#define IMPORT __declspec(dllimport)
#elif defined(__GNUC__)
// GCC
#define EXPORT __attribute__((visibility("default")))
#define IMPORT
#else
// do nothing and hope for the best?
#define EXPORT
#define IMPORT
#pragma warning Unknown dynamic link import/export semantics.
#endif
|
In the case of the library code, they've used the do nothing option from above, but when I replaced it with the __GNUC__ option the warning remained. Sigh...