Article View: gnu.gcc.bug
Article #1586what is ___main?
From: Ron Taylor
Date: Tue, 05 Jan 1993 23:42
Date: Tue, 05 Jan 1993 23:42
38 lines
1418 bytes
1418 bytes
I think we're missing a gcc library or something...
napali /home/beauty/rontay/test 548 cat main.c
main()
{
}
napali /home/beauty/rontay/test 549 gcc -c main.c
napali /home/beauty/rontay/test 550 gcc -o main main.o
main.o: undefined reference to `___main'
napali /home/beauty/rontay/test 551
napali /home/beauty/rontay/test 551
napali /home/beauty/rontay/test 551
napali /home/beauty/rontay/test 551 gcc main.c
main.o: undefined reference to `___main'
napali /home/beauty/rontay/test 552
napali /home/beauty/rontay/test 552
napali /home/beauty/rontay/test 552 nm main.o
nm: can't open 'main.o'.
napali /home/beauty/rontay/test 553 gcc -c main.c
napali /home/beauty/rontay/test 554 nm main.o
U ___main
00000000 T _main
00000000 t gcc2_compiled.
napali /home/beauty/rontay/test 555
If I move main.c to main.cc and try "gcc main.cc" the
compilation completes with no errors.
Any ideas on what I'm doing wrong?
Thanks!
Ron Taylor
rontay@netxwest.com
Technical Details
Message-ID:
<9301052342.AA13318@napali.netx.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!spool.mu.edu!wupost!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!netxwest.COM!rontayShow Full Headers
Complete Article Headers
Newsgroups: gnu.gcc.bug Path: arc1-ca.pugleaf.net!sparky!uunet!spool.mu.edu!wupost!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!netxwest.COM!rontay From: rontay@netxwest.COM (Ron Taylor) Subject: what is ___main? Message-ID: <9301052342.AA13318@napali.netx.com> Sender: gnulists@ai.mit.edu Organization: GNUs Not Usenet Distribution: gnu Date: Tue, 5 Jan 1993 23:42:17 GMT Approved: bug-gcc@prep.ai.mit.edu Lines: 39