home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / gnu / gcc / help / 2489 < prev    next >
Encoding:
Text File  |  1992-11-09  |  1.2 KB  |  30 lines

  1. Newsgroups: gnu.gcc.help
  2. Path: sparky!uunet!stanford.edu!agate!netsys!decwrl!elroy.jpl.nasa.gov!sdd.hp.com!ux1.cso.uiuc.edu!cs.uiuc.edu!vela!vela!vtessier
  3. From: vtessier@vela.acs.oakland.edu (Vince Tessier)
  4. Subject: Re: I keep getting "ld: Undefined symbol ___main" errors
  5. Message-ID: <vtessier.721345978@vela>
  6. Organization: Oakland University, Rochester MI.
  7. References: <vtessier.721264495@vela> <MAN.92Nov9162140@imrryr.at>
  8. Date: Mon, 9 Nov 1992 21:52:58 GMT
  9. Lines: 19
  10.  
  11. man@magwien.gv.at (Andreas Manessinger) writes:
  12.  
  13. >>>>>> On Sun, 8 Nov 1992 23:14:55 GMT, vtessier@vela.acs.oakland.edu (Vince Tessier) said:
  14.  
  15. > Vince> when I go to link the executable, I get a message of the form
  16. > Vince>     main.o(.text+4): undefined reference to `___main' 
  17.  
  18. >`_main' is a symbol from `libgcc.a' that is automatically linked,
  19. >whenever you call `gcc' for linking.
  20.  
  21. My problem seems to be that libgcc.a *isn't* being linked in by gcc.
  22. I'm mostly building the other gnu packages, and a typical link command
  23. is of the form
  24.     gcc -o foo bar.o zot.o quux.o
  25. which fails with the above message.  This problem does not occur when
  26. -- 
  27. Vince Tessier    vtessier@vela.acs.oakland.edu
  28.  
  29. "Think global, act loco."  -- Zippy
  30.