From: "John M. Aldrich" Newsgroups: comp.os.msdos.djgpp Subject: Re: makefile problems Date: Mon, 23 Dec 1996 19:00:28 -0800 Organization: Two pounds of chaos and a pinch of salt Lines: 37 Message-ID: <32BF474C.4934@cs.com> References: <32be3881 DOT 90176573 AT nntp DOT southeast DOT net> <32beeffe DOT 137156827 AT nntp DOT southeast DOT net> Reply-To: fighteer AT cs DOT com NNTP-Posting-Host: ppp108.cs.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Murray Stokely wrote: > > Ok I found the problem below was because dos edit inserts 8 spaces > instead of a tab char when you press but i'm still getting an Did you figure out how to fix it in DOS Edit? It's possible, but you need to toy with Edit's "mind" a bit. The way to do it is to insert an escaped tab character by pressing Ctrl-P before pressing TAB. You will see a little circle appear in your document. Save it and reload it into Edit and you'll see the tab has been expanded, but Edit didn't fill in spaces; it's an actual tab. Any further editing on the same file will preserve this behavior (tabs stay tabs instead of being converted to spaces). You could also use GNU Emacs or RHIDE, both of which preserve tabs (in Emacs you have to use the 'tabify' command, either manually or in your '_emacs' file.) > error. Can anyone tell me what this means? > > d:/djgpp/lib\crt0.o(.data+0x92):crt0.s: undefined reference to `main' > d:/djgpp/lib/libc.a(crt1.o)(.text+0x312):crt1.c: undefined reference > to `main' > make.exe: *** [bth6] Error 1 Well, the obvious first thing to check is to make sure that your program does in fact have a main() function and that you are compiling the file that has it. Since you are using a makefile, this could easily be your problem -- I can't tell enough from looking at the makefile you posted. -- --------------------------------------------------------------------- | John M. Aldrich, aka Fighteer I | mailto:fighteer AT cs DOT com | | God's final message to His Creation: | http://www.cs.com/fighteer | | "We apologize for the inconvenience."| Fight against proprietary | | - Douglas Adams | software - support the FSF!| ---------------------------------------------------------------------