From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20464 invoked by alias); 31 Dec 2003 09:08:55 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 20456 invoked from network); 31 Dec 2003 09:08:54 -0000 Received: from unknown (HELO mail.gmx.net) (213.165.64.20) by sources.redhat.com with SMTP; 31 Dec 2003 09:08:54 -0000 Received: (qmail 15745 invoked by uid 65534); 31 Dec 2003 09:08:53 -0000 Received: from p3EE38E04.dip.t-dialin.net (EHLO rechner1.ddorf.de) (62.227.142.4) by mail.gmx.net (mp002) with SMTP; 31 Dec 2003 10:08:53 +0100 X-Authenticated: #20933907 Subject: Re: multiple definition of `MAIN__' From: Fabian Braennstroem Reply-To: f.braennstroem@gmx.de To: Toon Moene Cc: gcc-help@gcc.gnu.org In-Reply-To: <3FF18424.80608@moene.indiv.nluug.nl> References: <1072637920.9401.30.camel@rechner1.ddorf.de> <3FF0273E.2040407@moene.indiv.nluug.nl> <1072736184.2717.19.camel@rechner1.ddorf.de> <3FF18424.80608@moene.indiv.nluug.nl> Content-Type: text/plain Organization: Fabian Braennstroem Message-Id: <1072861793.1805.35.camel@rechner1.ddorf.de> Mime-Version: 1.0 Date: Wed, 31 Dec 2003 09:08:00 -0000 Content-Transfer-Encoding: 7bit X-SW-Source: 2003-12/txt/msg00263.txt.bz2 On Tue, 2003-12-30 at 14:56, Toon Moene wrote: > Fabian Braennstroem wrote: > > > THAT is the correct error-message: > > > > save_vel.o(.text+0xcd1): In function `MAIN__': > > : multiple definition of `MAIN__' > > main.o(.text+0x0): first defined here > > /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/../../../../i686-pc-linux-gnu/bin/ld: Warning: size of symbol `MAIN__' changed from 5155 in main.o to 5 in save_vel.o > > save_pres.o(.text+0x763): In function `MAIN__': > > : multiple definition of `MAIN__' > > main.o(.text+0x0): first defined here > > collect2: ld returned 1 exit status > > make: *** [calc_les_03_cube] Error 1 > > Ah, this is a slightly different problem. Sorry, it was a different error which I had before. > Somehow, g77 thinks there is > a main program in the file save_vel.f - this can happen if you have a > single (extraneous) END statement for instance. Yes, that's it. I had two 'end' and one 'return'. Now it works :-) > > If you can't find the problem, send me (and only me - not the list) the > whole file save_vel.f and I'll take a look. > > Cheers, Thanks a lot and happy new year! Fabian