On the new mingw64-i686 packages
Fri Sep 17 11:25:00 GMT 2010
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
> where 'mingw32-gfortran' is a link (in '/usr/local/bin') to
> 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?
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
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
More information about the Cygwin