我正试图在Linux下编译一个相当基本的程序,但我在使用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_start2012年3月12日更新:当我定义自己的printf()时,似乎消失了...
发布于 2012-12-04 10:59:54
太棒了!我已经找到了。
在main.c中调用main()时,我使用的参数如下
int main(int i, char **c)但是,如果我不使用参数...它就消失了
int main()这一定是因为我没有将任何东西从程序集传递到main中。此外,printf()与它无关,一定是一次处理了太多的东西。
https://stackoverflow.com/questions/9678340
复制相似问题