随笔分类 -  gcc

the compiler of gnu
链接选项-ldl
摘要:fromhttp://topic.csdn.net/u/20080819/16/9db4c00c-b0d2-48e2-9b1f-c7c7062d373f.html细究了一下编译选项-ldl查了老半天,不知是关键字没选好,还是google还真的不行了.最终还是靠度娘找到的..#include <dlfcn.h> dlopen(),dlclose() , dlerror() , dlsym() , the Base Definitions volume of IEEE Std 1003.1-2001, <dlfcn.h>这些函数,动态库的相关部分-dl ,同楼上所说,是显式 阅读全文

posted @ 2012-07-13 11:39 Orz.. 阅读(618) 评论(0) 推荐(0)

用gcc来玩cpp文件的提示 undefined reference to `__gxx_personality_v0'
摘要:RT,本想用gcc来写c的,习惯把文件的后缀改成了cpp编译时还是gcc可是就报上面的错了.办法?1.在参数中加入-lstdc++2.把后缀从cpp改成c3.不要用gcc改为g++都可以 阅读全文

posted @ 2012-05-07 11:53 Orz.. 阅读(283) 评论(0) 推荐(0)

导航