delorie.com/archives/browse.cgi | search |
X-Spam-Check-By: | sourceware.org |
Message-ID: | <44CFFB1D.3040000@cygwin.com> |
Date: | Tue, 01 Aug 2006 21:08:45 -0400 |
From: | "Larry Hall (Cygwin)" <reply-to-list-only-lh AT cygwin DOT com> |
Reply-To: | cygwin AT cygwin DOT com |
User-Agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8) Gecko/20060112 Fedora/1.5-1.fc4.remi Thunderbird/1.5 Mnenhy/0.7.4.0 |
MIME-Version: | 1.0 |
To: | cygwin AT cygwin DOT com |
Subject: | Re: Fortran calling c compilation problem |
References: | <44CF677A DOT 3050707 AT statslab DOT cam DOT ac DOT uk> |
In-Reply-To: | <44CF677A.3050707@statslab.cam.ac.uk> |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
On 08/01/2006, Ben Wright wrote: > I'm working on a project that uses a combination of c++, c and fortran to > build a library for use with the Java Native Interface. The library > compiles correctly under Linux with gcc 3.2.3, but I can't get it to > compile correctly under cygwin (using gcc 3.4.4). > > I'm calling: > > g++ -mno-cygwin -Wl,--add-stdcall-alias > -I/cygdrive/c/Java/jdk1.5.0_07/include > -I/cygdrive/c/Java/jdk1.5.0_07/include/win32 -shared -o Samplers.dll <a > whole bunch of source files here> -lstdc++ -lg2c > > /cygdrive/c/DOCUME~1/ben/LOCALS~1/Temp/ccWWbiIF.o:gengam.f(.text+0x5): > undefined reference to `_dgamdv_' > (plus others of similar form) The '-mno-cygwin' flag trigggers the "cross-compiler" to MinGW. If you're having problem with this switch, you should check with the MinGW folks (http://www.mingw.org/), since you're really using their compiler, not Cygwin's. -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 216 Dalton Rd. (508) 893-9889 - FAX Holliston, MA 01746 -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |