0

我正在尝试在 Mac OS X 上编译 sphere_2.6a 库。开始时需要以下参数:

Defined Commands and Options:
  Compiler           = gcc
  Compiler options   = -g -m32 -DNARCH_UNIX
  Install            = cp
  Ranlib             = ranlib
  Archiver           = ar ru

那是我得到以下错误输出:

Undefined symbols for architecture i386:
"_hs_getopt", referenced from:
   _main in cc36C6uK.o
"_hs_optind", referenced from:
   _main in cc36C6uK.o
"_sp_create_header", referenced from:
  _main in cc36C6uK.o
"_sp_fpcopy", referenced from:
  _main in cc36C6uK.o
"_sp_get_version", referenced from:
  _main in cc36C6uK.o
"_sp_verbose", referenced from:
  _main in cc36C6uK.o
"_sp_write_header", referenced from:
  _main in cc36C6uK.o
ld: symbol(s) not found for architecture i386
collect2: ld returned 1 exit status
make[2]: *** [h_add] Error 1

有谁知道问题出在哪里?

非常感谢,乔瓦尼

4

0 回答 0