在ld86编译时出现auto_start错误

问题描述:

我想在Linux下编译一个相当基本的程序,我在ld86上遇到了问题。任何人都有什么想法auto_start是什么?在ld86编译时出现auto_start错误

$ bcc -c tc.c 
$ as86 -o ts.o ts.s 
$ ld86 -d ts.o tc.o /usr/lib/bcc/libc.a 
ld86: warning: _gets redefined in file /usr/lib/bcc/libc.a(gets.o); using definition in tc.o 
undefined symbol: auto_start 

更新3/12/2012:似乎走的时候我定义自己的printf() ......

好哇!我找到了它。

当main.c中调用main()我使用的参数是这样

int main(int i, char **c) 

但是,如果我不使用任何参数...它消失

int main() 

一定是因为我不要通过任何东西从主要组装。另外printf()与它无关,一定是一次玩过多的东西。