Mail Archives: djgpp/1996/12/03/08:28:53
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 *
*****************************************************************
- Raw text -