Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm Sender: cygwin-owner AT sourceware DOT cygnus DOT com Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com From: "Richard Stanton" To: "Mumit Khan" Cc: Subject: RE: CFORTRAN for cygwin/egcs? Date: Mon, 15 Mar 1999 17:58:15 -0800 Message-ID: <000b01be6f50$74ce5a60$9e3a85d1@CONNOR.berkeley.edu> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook 8.5, Build 4.71.2377.0 In-Reply-To: Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3155.0 It IS trivial to use, I've found, as long as you use version 3.5 rather than 2.8. The latter seems to be more easily found. As you say, using -Df2cFortran, and linking with -lg2c, gets the sample program to compile without warnings. Thanks. Richard Stanton > -----Original Message----- > From: cygwin-owner AT sourceware DOT cygnus DOT com > [mailto:cygwin-owner AT sourceware DOT cygnus DOT com]On Behalf Of Mumit Khan > Sent: Monday, March 15, 1999 2:28 PM > To: Richard Stanton > Cc: cygwin AT sourceware DOT cygnus DOT com > Subject: Re: CFORTRAN for cygwin/egcs? > > > On Mon, 15 Mar 1999, Richard Stanton wrote: > > > There's a rather useful package called CFORTRAN, that makes > calling FORTRAN > > subroutines from C, and vice versa, very simple, on the > machines it knows > > about. > > > > Has anyone got this working with egcs gcc/g77 under NT? If so, I'd > > appreciate any pointers or examples you may have. > > Hmmm ... it's been years since I've used, but from what I remember, it > should be pretty trivial to use with gcc/g77 on Windows32. I believe the > magic was to define -Df2cFortran (or something like that) and the rest > just worked. > > One potential gotcha, and only applicable if you're using gcc/c++ as the > link driver instead of using g77, is that f77 runtime library > bundled with > g77 has been renamed from libf2c.a to libg2c.a, and so you'll need to link > with -lg2c instead of -lf2c. > > > $ gcc -Df2cFortran -c cfile.c > $ g77 -c ffile.f > $ gcc -o mixedprog ffile.o cfile.o -lg2c > > What problems have you had? > > Mumit > > > > -- > Want to unsubscribe from this list? > Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com > > > -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com