delorie.com/archives/browse.cgi | search |
Newsgroups: | comp.os.msdos.djgpp |
From: | manfred DOT heumann AT uni-bielefeld DOT de (Manni Heumann) |
Subject: | Re: A Linking problem |
References: | <19990603131746 DOT 99779 DOT qmail AT hotmail DOT com> |
X-Newsreader: | News Xpress 2.01 |
Date: | Thu, 03 Jun 1999 15:51:00 GMT |
NNTP-Posting-Host: | ppp36-204.hrz.uni-bielefeld.de |
Message-ID: | <3756a42e.0@news.uni-bielefeld.de> |
X-Trace: | 3 Jun 1999 17:50:06 +0200, ppp36-204.hrz.uni-bielefeld.de |
Lines: | 28 |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
djgpp AT delorie DOT com wrote: > >Hello, >I am have a bit of trouble linking my *.o files. I am trying to port a mud >to run at dos. The *.c files compile fine, but when I type "gcc -o >filename.exe *.o" I get a long list of things that say undefined reference, >and it seems to be all of the functions. At the end of the linking process >there is a message.... > >"c:\djgpp\lib\libc.a(crt1.o)(.text+0x446):crt1.c:undefined reference to >'main'. > >Any help would do a lot of good.... > >thank you very much!! > > Did you really try to specify all your .o files with the wildcard (*.o)? Or was that just shorthand for this post? If it wasn't: You will have to be a little more specific and give gcc the name of every single .o file you want to link. Or (better) use make. -- Manni
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |