c - gcc exit with undefined reference to function in header file - Stack ...
經安全檢測,此網站為安全網站,請放心前往原始網址!
c - gcc exit with undefined reference to function in header file - Stack ...
The order of libraries and objects on your compilation/link command line matters.
In your case, you just need to put the shared object at the end: gcc ...