home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / gnu / gcc / bug / 3118 < prev    next >
Encoding:
Text File  |  1993-01-06  |  1.3 KB  |  52 lines

  1. Newsgroups: gnu.gcc.bug
  2. Path: sparky!uunet!spool.mu.edu!wupost!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!netxwest.COM!rontay
  3. From: rontay@netxwest.COM (Ron Taylor)
  4. Subject: what is ___main?
  5. Message-ID: <9301052342.AA13318@napali.netx.com>
  6. Sender: gnulists@ai.mit.edu
  7. Organization: GNUs Not Usenet
  8. Distribution: gnu
  9. Date: Tue, 5 Jan 1993 23:42:17 GMT
  10. Approved: bug-gcc@prep.ai.mit.edu
  11. Lines: 39
  12.  
  13. I think we're missing a gcc library or something...
  14.  
  15.  
  16. napali /home/beauty/rontay/test 548 cat main.c
  17. main()
  18. {
  19. }
  20. napali /home/beauty/rontay/test 549 gcc -c main.c
  21. napali /home/beauty/rontay/test 550 gcc -o main main.o
  22. main.o: undefined reference to `___main'
  23. napali /home/beauty/rontay/test 551 
  24. napali /home/beauty/rontay/test 551 
  25. napali /home/beauty/rontay/test 551 
  26. napali /home/beauty/rontay/test 551 gcc main.c
  27. main.o: undefined reference to `___main'
  28. napali /home/beauty/rontay/test 552 
  29. napali /home/beauty/rontay/test 552 
  30. napali /home/beauty/rontay/test 552 nm main.o
  31.  
  32. nm: can't open 'main.o'.
  33. napali /home/beauty/rontay/test 553 gcc -c main.c
  34. napali /home/beauty/rontay/test 554 nm main.o
  35.          U ___main
  36. 00000000 T _main
  37. 00000000 t gcc2_compiled.
  38. napali /home/beauty/rontay/test 555 
  39.  
  40.  
  41. If I move main.c to main.cc and try "gcc main.cc" the
  42. compilation completes with no errors.
  43.  
  44.  
  45. Any ideas on what I'm doing wrong?
  46.  
  47. Thanks!
  48.  
  49. Ron Taylor
  50. rontay@netxwest.com
  51.  
  52.