为什么我在x86 Solaris10和gcc 3.4.3上构建ratpoison时出现以下错误
文件strcasestr中未定义第一个引用的符号。o ld: fatal:符号引用错误。未将输出写入ratpoison collect2: ld返回1退出状态gmake2:* ratpoison错误1
但是_GNU_SOURCE已经完成了。
/*
* Per POSIX strcasestr should be declared in strings.h
* glibc declares it in string.h instead and needs
* _ GNU_SOURCE
*/
#define _GNU_SOURCE
#include <strings.h>
#include <string.h>发布于 2019-01-26 03:41:47
strcasestr是一个GNU扩展。它不是Solaris libc的一部分。Gnulib有一个你可以使用的implementation of strcasestr。参见the instructions for using gnulib-tool。
https://stackoverflow.com/questions/54371606
复制相似问题