undefined reference to rpl_malloc

编译json-c arm版本 可以顺利通过, 但是链接json-c动态库的时候会有提示: undefined reference to rpl_malloc

按照网上的搜索结果在configure的时候加上--with-gnu-ld和config.h里加上#undefine rpl_malloc都不能解决问题。

后来发现config.h.in里定义了   
#undef malloc
#undef realloc

把这两个去掉, 编译顺利通过。


你可能感兴趣的:(reference)