我正在尝试在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
有人知道问题出在哪里吗?
非常感谢, 乔瓦尼