X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Message-ID: <4C934769.70903@alice.it> Date: Fri, 17 Sep 2010 12:48:09 +0200 From: Angelo Graziosi User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; it; rv:1.9.2.9) Gecko/20100915 Thunderbird/3.1.4 MIME-Version: 1.0 To: Cygwin Subject: On the new mingw64-i686 packages Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: 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 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. -- 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