c++ - 错误: 'wcsncasecmp' was not declared in this scope

标签 c++ c macos g++

我在 c/c++ 应用程序中使用 wcsncasecmp。

编译出现以下错误:

error: 'wcsncasecmp' was not declared in this scope

Gcc 4.2.1,macOS。

如何解决这个错误?

最佳答案

wcsncasecmp 是 GNU 特定函数。它在 Mac OS X 上不可用。

关于c++ - 错误: 'wcsncasecmp' was not declared in this scope,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10062794/

相关文章:

c++ - 多语言编译中的I/O问题

c++ - Visual Studio Code C/C++ 扩展没有为编译器设置包含路径

c++ - 打印 vector 的 vector

c - 2 < x 的最大幂的高效计算

c - 快速二进制解析器算法

java - Spring Boot 无法监听端口

ios - OS X 崩溃报告中的 "Application specific information"

c++ - 创建面向对象的链表时出现编译问题(编译器错误 C2664)

c - write 和 fwrite 的区别 不一样的结果

python - 用C创建的GDBM数据库可以用Python打开吗?