On the new mingw64-i686 packages

Angelo Graziosi angelo.graziosi@alice.it
Fri Sep 17 11:23:00 GMT 2010


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



More information about the Cygwin mailing list