请教hp_ux下一个编译问题
我测试了编译一个t.c文件
#include <varargs.h>
int main(int argc, char **argv)
{
va_list op;
return 0;
}
步骤如下:
cc +DD32 -O2 -c t.c
生成了t.o
再执行
cc +DD32 -O2 -o t.o
结果报了一个错:/usr/ccs/bin/ld: t.o: Not a valid object file (invalid magic number)
google了一下
/usr/ccs/bin/ld: t.o: Not a valid object file (invalid magic number)
CAUSE The named file has the correct filecode but
contains an incorrect "magic number" in its header
record. This usually indicates that the
relocatable object file has been corrupted, or that
a non-relocatable object file has been created with
an NMOBJ filecode.
请教下
为什么报这个错, 还有上面的错误原因中NMOBJ是什么的缩写?
谢谢了先