Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Content-Type: text/plain; charset="iso-8859-1" From: Tim Prince Reply-To: tprince AT computer DOT org To: "Liu, Wei" , "'cygwin AT cygwin DOT com'" Subject: Re: Unresolved Symbols in g77 objects Date: Wed, 27 Mar 2002 13:00:57 -0800 Cc: "Liu, Wei" , "'linda_w AT ix DOT netcom DOT com'" References: <996288BE9AF57B46B4923D20BFD67B05015E2619 AT XCH-SBC-12 DOT sw DOT nos DOT boeing DOT 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/