Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Content-Type: text/plain;
  charset="iso-8859-1"
From: Tim Prince <tprince@computer.org>
Reply-To: tprince@computer.org
To: "Liu, Wei" <wei.liu2@boeing.com>,
   "'cygwin@cygwin.com'" <cygwin@cygwin.com>
Subject: Re: Unresolved Symbols in g77 objects
Date: Wed, 27 Mar 2002 13:00:57 -0800
Cc: "Liu, Wei" <wei.liu2@boeing.com>,
   "'linda_w@ix.netcom.com'" <linda_w@ix.netcom.com>
References: <996288BE9AF57B46B4923D20BFD67B05015E2619@XCH-SBC-12.sw.nos.boeing.com>
In-Reply-To: <996288BE9AF57B46B4923D20BFD67B05015E2619@XCH-SBC-12.sw.nos.boeing.com>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Message-Id: <20020327210057.DBE8E2CB06@inet1.ywave.com>

On Tuesday 26 March 2002 16:35, Liu, Wei wrote:
> I compiled some fortran files using g77. The compiling flags I used are:
>
>  -fugly-init -ff77 -fugly-complex -ftypeless-boz -fugly-assumed \
>          -fno-silent -fugly-args -fugly-comma -fintrin-case-any \
>          -fmatch-case-any -fno-f2c -w \
>          -fno-underscoring -fno-globals -g -I4 -c
> The version of g77 I used is 2.95.3-5 (gcc used by g77 is same version).
>
> I am trying to link the objects compiled using g77 with the objects
> compiled
>
> with Visual C++. The linker I used is CL (Visual C++ linker).
> I got a few unresolved symbols in the objects created by g77. Those
> symbols definitely are not in my source code but created by g77.
> Here are those symbols:
>
> _s_wsfe
> _do_fio
> __alloca
>
> How can I solve those unresolved symbols?
If you want to link g77 objects without the use of g77 or another 
f2c-compatible library, you must refrain from using any read/write or file 
access.  Apparently, you may need to refrain also from use of automatic 
arrays, which may require a gcc-compatible run time library.

-- 
Tim Prince

--
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/

