- 论坛徽章:
- 0
|
因为在程序中使用了宏定义可变参数函数:
#define MPRI_DEBUG(appl_errno,level,fmt... ) \
PRI_DEBUG(__FILE__,__LINE__,(appl_errno),(level),##fmt)
而SCO下面的CC好象不支持可变参数,所以打算装GCC
先用custom装了个GNU Development Tools (ver 5.0.7Kj)
再装了GCC - GNU Compiler Collection (ver 2.95)
然后写了个测试程序来编译:
test.c
#include <stdio.h>
int main()
{
printf("12345test\n");
return 0;
}
运行
# gcc -c test.c
没有错
但运行
# gcc -o test test.c
会报错,错误信息:
WARNING: no SCO ELF identifying .note section in file '/usr/local/lib/gcc-lib/i4
86-pc-sco3.2v5.0/2.95/crtbegin.o'
WARNING: no SCO ELF identifying .note section in file 'test.o'
WARNING: no SCO ELF identifying .note section in file '/usr/local/lib/gcc-lib/i4
86-pc-sco3.2v5.0/2.95/crtend.o'
Undefined first referenced
symbol in file
_fini /usr/ccs/lib/crt1.o
ERROR: Symbol referencing errors. No output written to test
collect2: ld returned 1 exit status
求高手帮忙解决问题。。。 |
|