From: Robert Hoehne Newsgroups: comp.os.msdos.djgpp Subject: Re: Link error in RHIDE Date: Tue, 03 Dec 1996 12:18:44 +0100 Organization: TU Chemnitz-Zwickau Lines: 35 Message-ID: <32A40C94.272B@Mathematik.tu-chemnitz.de> References: <32A1F163 DOT 2F43 AT abc DOT se> NNTP-Posting-Host: process.hrz.tu-chemnitz.de Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit To: Henrik DOT Baarnhielm AT abc DOT se DJ-Gateway: from newsgroup comp.os.msdos.djgpp Henrik Bäärnhielm wrote: > > Every time I try to link in RHIDE I get errors saying that there are > undefined references to 'main'. When I write a makefile and use > command-line make it works. I have made a project and included my > cc-file in it. Can somebody help me? I am using beta 6. Does it matter > which directory my .cc-file and project is in? To give you an axact answer, I need more information at least about which options (compiler switches) you have enabled in RHIDE and how you created the makefile. If you have created the makefile with RHIDE and it works but not inside RHIDE, then this is a real interesting problem. The directories, where your files are, are at this point not so important, because you got an "undefined ..." linker error and no "file not found" or similar error, so I think your files at the correct place. And again to the "need more information": I said this, because in the last days a user wrote me a similar problem and as I analized his project file, I saw, that he had enabled mostly every warning switch including the "-fsyntax-only" switch, which tells gcc not to produce any code but only to check the syntax of your file. Please check, if this is true also for you. 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 * *****************************************************************