Linux下动态库的使用
摘要:1、生成动态库: gcc -fPIC -shared -o libdemo.so demo.c 考虑程式库major的升级会破坏兼容性;而minior的升级则可能不会,一般建议用以下方式来生成动态库。 gcc -fPIC -shared -Wl,-soname,libdemo.so.major -o
阅读全文
posted @ 2016-05-20 11:17
posted @ 2016-05-20 11:17
posted @ 2016-05-19 16:43
posted @ 2016-05-11 22:02