摘要:
库代码:[代码]编译命令:gcc -shared -o hello.so hello.c使用库的代码:代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--#includestdio.h#includestdlib.h#includedlfcn.hintmain(intargc,char**argv){void*handle;void(*callfun)();char*error;handle=dlopen("/root/tmp/hell
阅读全文
posted @ 2011-01-28 17:47
海王
阅读(9021)
推荐(1)
摘要:
http://linux.die.net/man/3/dlopenName dladdr, dlclose, dlerror, dlopen, dlsym, dlvsym - programming interface to dynamic linking loader Synopsis #include dlfcn.h void *dlopen(const char *filename, int flag); char *dlerror(void); void *dlsym(void *handle, const char *symbol); int dlclose(void *hand
阅读全文
posted @ 2011-01-28 17:40
海王
阅读(1764)
推荐(0)
摘要:
http://www.linuxsir.org/bbs/printthread.php?t=266890C++ dlopen mini HOWTO 中译版 [原创] C++ dlopen mini HOWTO 作者:Aaron Isotton aaron@isotton.com 2006-03-16 译者:Lolita@linuxsir.org 2006-08-05------------------------------------------------ 摘要 如何使用dlopen API动态地加载C++函数和类 ----------------------
阅读全文
posted @ 2011-01-28 16:02
海王
阅读(432)
推荐(0)