delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/12/12/00:23:26

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Wed, 12 Dec 2001 14:23:40 +0930
From: Brian Salter-Duke <b_duke AT lacebark DOT ntu DOT edu DOT au>
To: cygwin AT cygwin DOT com
Subject: Re: can't link fortran executable
Message-ID: <20011212142340.A25872@lacebark.ntu.edu.au>
References: <80575AFA5F0DD31197CE00805F650D7602D05A AT wilber DOT adroit DOT com> <m3ady1glqw DOT fsf AT netmaster DOT kds DOT com DOT ua>
Mime-Version: 1.0
In-Reply-To: <m3ady1glqw.fsf@netmaster.kds.com.ua>
User-Agent: Mutt/1.3.19i

On Mon, Nov 05, 2001 at 07:39:51PM +0200, Andrey Khavryuchenko wrote:

after an earlier post that contained:-
 
>>$ g77 -o chngc.exe *.o
>>[...]
>>wrtrasmol.o: In function `wrtrasmol_':
>>wrtrasmol.o(.text+0x35): undefined reference to `s_wsfe'
>>wrtrasmol.o(.text+0x3d): undefined reference to `e_wsfe'
>>wrtrasmol.o(.text+0x4a): undefined reference to `s_wsfe'
>>wrtrasmol.o(.text+0x61): undefined reference to `do_fio'
>>wrtrasmol.o(.text+0x69): undefined reference to `e_wsfe'
>>wrtrasmol.o(.text+0x76): undefined reference to `s_wsfe'
>>wrtrasmol.o(.text+0x8d): undefined reference to `do_fio'
>>wrtrasmol.o(.text+0xa4): undefined reference to `do_fio'
>>wrtrasmol.o(.text+0xac): undefined reference to `e_wsfe'
>>wrtrasmol.o(.text+0xb9): undefined reference to `s_wsfe'
>>wrtrasmol.o(.text+0xc1): undefined reference to `e_wsfe'
>>wrtrasmol.o(.text+0x10c): undefined reference to `s_copy'
>>wrtrasmol.o(.text+0x11c): undefined reference to `s_wsfe'
>>wrtrasmol.o(.text+0x133): undefined reference to `do_fio'
>>wrtrasmol.o(.text+0x154): undefined reference to `e_wsfe'
>>wrtrasmol.o(.text+0x191): undefined reference to `do_fio'
>>/usr/lib/gcc-lib/i686-pc-cygwin/2.95.3-5/libg2c.a(main.o)(.text+0x38):main.c:
>>undefined reference to `MAIN__'
>>collect2: ld returned 1 exit status
>>
>>What's set up wrong?  What's missing?

> Just noticed.  Strange, but if I build using 
>         $ g77 -o chngc.exe *.f
> everything goes ok.

Does anyone understand what is going on here. I have a very complex
makefile for a very complex program. It gives the "undefine MAIN" error 
as above (not the others), but I have been able to link other complex 
situations. The solution of compiling all the *.f in one go is not really 
possible without a lot of work. The whole system and the makefiles are not
designed that way. So I am stuck unless I can understand this.

Regards, Brian. 

-- 
Associate Professor Brian Salter-Duke (Brian Duke) b_duke AT lacebark DOT ntu DOT edu DOT au  
Chemistry, School of BECS, SITE, NT University, Darwin, NT 0909, Australia.
Phone 08-89466702.     Fax 08-89466847.     http://www.smps.ntu.edu.au/

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019