delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/09/17/07:14:58

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-1.7 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,T_TO_NO_BRKTS_FREEMAIL
X-Spam-Check-By: sourceware.org
Message-ID: <4C934DC2.1060603@users.sourceforge.net>
Date: Fri, 17 Sep 2010 19:15:14 +0800
From: JonY <jon_y AT users DOT sourceforge DOT net>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.12) Gecko/20080213 Thunderbird/2.0.0.12 Mnenhy/0.7.5.0
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: On the new mingw64-i686 packages
References: <4C934769 DOT 70903 AT alice DOT it>
In-Reply-To: <4C934769.70903@alice.it>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
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 9/17/2010 18:48, Angelo Graziosi wrote:
> First of all, thanks a lot for having added these packages to Cygwin :-).
>
> I have installed gcc-core, gfortran and g++ and want to flag the following.
>
> I have a few applications which I compile like this on Cygwin:
>
> $ gfortran -O3 -Wall -mwindows foo.f90 bar.cpp -lstdc++ -s -o foobar
>
> (notice the .f90 and .cpp) where gfortran is the current 4.3.4. The
> above compiles and runs.
>
> Now, I have tried this:
>
> $ mingw32-gfortran -O3 -Wall -mwindows foo.f90 bar.cpp -lstdc++ -s -o
> foobar32
>
> where 'mingw32-gfortran' is a link (in '/usr/local/bin') to
> '/usr/bin/i686-w64-mingw32-gfortran.exe':
>
> mingw32-gfortran -> /usr/bin/i686-w64-mingw32-gfortran.exe
>
> The above compiles just fine, but:
>
> $ ./foobar32 /tmp/foobar32.exe: error while loading shared libraries:
> libstdc++-6.dll: cannot open shared object file: No such file or directory
>
> If I use '-static' option, it rins just fine.
>
> So, should I add something to PATH?
>
> Ciao,
> Angelo.
>

Hi,

It should be in /usr/i686-w64-mingw32/sys-root/mingw/bin/libstdc++-6.dll.

Note that although similarly named, it is not ABI compatible with 
standard mingw gcc-4 libstdc++-6.dll.

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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