摘要: 原文链接:http://xiaomage.blog.51cto.com/293990/72755linux下用g++编译代码,在连接一个c的静态库的时候,总是提示:undefined reference to`错误,找不到库函数。main.c:(.text+0x15): undefined reference to `MemoryContextInit()'main.c:(.text+0x26): undefined reference to `MemoryContextDestory()'用gcc编译就可以通过。其实,代码不是面向对象的c++语言,开始没有想到是c++调用c函 阅读全文
posted @ 2011-05-30 08:49 Richard Zhong 阅读(1659) 评论(0) 推荐(0) 编辑