【问题标题】:Undefined symbols error under OSX 10.5.8OSX 10.5.8 下的未定义符号错误
【发布时间】:2012-07-21 14:19:54
【问题描述】:

我尝试在 OSX 10.5.8 下使用 CFLocaleCopyCurrent 但出现奇怪的错误:

#include <CoreFoundation/CoreFoundation.h>

int main(int argc, char **argv){
    setlocale(LC_ALL, "");
    CFLocaleRef loc = CFLocaleCopyCurrent();
    return 0;
}

Undefined symbols:
"_CFLocaleCopyCurrent", referenced from: _main in ccn51XwH.o

【问题讨论】:

    标签: c xcode macos gcc


    【解决方案1】:

    试试/usr/bin/gcc -framework Foundation test.c

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2012-06-19
      • 2012-10-10
      • 2013-10-22
      • 2014-06-01
      • 2015-11-13
      • 1970-01-01
      相关资源
      最近更新 更多