From: Robert Hoehne Newsgroups: comp.os.msdos.djgpp Subject: Re: cannot link inside RHIDE - Help! Date: Fri, 12 Sep 1997 09:53:25 +0200 Organization: TU Chemnitz-Zwickau Lines: 42 Message-ID: <3418F4F5.778C2D6C@Mathematik.TU-Chemnitz.DE> References: <340F341B DOT 105371F0 AT hol DOT gr> NNTP-Posting-Host: pandora.hrz.tu-chemnitz.de 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 Precedence: bulk Manolis Kefalas wrote: > > This is a bug report for RHIDE Version 1.3 (Jun 10 1997 09:23:28) > I am running MS-DOS 6.22 This seems to be all OK. > In RHIDE, I have problem building any exe file, like: [snip] > copmile ends just fine > > while linking I get > > Creating: hello.exe > Error: /djgpp/lib\crt0.o(.data+0x92):crt0.s: undefined reference to > `main' > Error: c:/djgpp/lib/libc.a(ctr1.o)(.text+0x312):crt1.c: undefined > reference to `main' Please excuse my question now (but I saw this problem already by an other user). Can it be that you have enabled _ALL_ the warning flags in RHIDE? If yes, than you have also enabled the -fsyntax-only switch which tells gcc to _NOT_ to produce any real code and so you will have of course also no main symbol. If the above is not true, then please run rhide in the following way: redir -e err rhide -dc ... Then do the compile step (Alt-F9) and then the link step (menu Compile/Link) and then exit rhide. Now please post here the created file 'err'. Robert -- ***************************************************************** * Robert Hoehne, Fakultaet fuer Mathematik, TU-Chemnitz-Zwickau * * Post: Am Berg 3, D-09573 Dittmannsdorf * * e-Mail: Robert DOT Hoehne AT Mathematik DOT TU-Chemnitz DOT DE * * WWW: http://www.tu-chemnitz.de/~rho * *****************************************************************