home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: gnu.gcc.bug
- Path: 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
-
- 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
-
-