Re: A linking problem with current GCC (4.5.3)

2012-12-13 Thread Angelo Graziosi
Marco Atzeri wrote: why not using gfortran as provided ? I am doing tests and, as I wrote, it works with gfortran and i686-w64-mingw32-gfortran (http://cygwin.com/ml/cygwin/2012-12/msg00187.html) and also with G95 if the C++ code is compiled with g++-3 or g++-4.3.4. Now I am missing why

Re: A linking problem with current GCC (4.5.3)

2012-12-13 Thread marco atzeri
On 12/13/2012 3:52 PM, Angelo Graziosi wrote: Marco Atzeri wrote: are you mixing compilers ? Yes... mixing C and Fortran has been standardized (http://fortranwiki.org) what is g95 pointing to ? a Fortran compiler ported to Cygwin and other systems (http://www.g95.org) eventually the ord

Re: A linking problem with current GCC (4.5.3)

2012-12-13 Thread Angelo Graziosi
Marco Atzeri wrote: are you mixing compilers ? Yes... mixing C and Fortran has been standardized (http://fortranwiki.org) what is g95 pointing to ? a Fortran compiler ported to Cygwin and other systems (http://www.g95.org) eventually the orded No, this cannot work: the .o file depend o

Re: A linking problem with current GCC (4.5.3)

2012-12-13 Thread Angelo Graziosi
V. Zeman wrote: If you are targeting native Windows (no Cygwin) then you can use No.. Anyway the example I reported works with: g++, gfortran (Cygwin native) i686-w64-mingw32-gfortran, i686-w64-mingw32-g++ (Windows native) and, using Cygwin g++-3 or g++-4.3.4, it works also (Cygwin native)

Re: A linking problem with current GCC (4.5.3)

2012-12-13 Thread marco atzeri
On 12/12/2012 10:50 PM, Angelo Graziosi wrote: When Cygwin had GCC-4.3.4 as GCC default compiler, I could compile an application with these steps g++ -c winbgim.cpp -o winbgim-g95.o g95 -O3 -Wall -mwindows basic_mods.f90 f03bgi.f90 f03eyes.f90 \ winbgim-g95bis.o -L /lib/gcc/i686-pc-cygwin/

Re: A linking problem with current GCC (4.5.3)

2012-12-13 Thread Václav Zeman
On 12 December 2012 22:50, Angelo Graziosi wrote: > When Cygwin had GCC-4.3.4 as GCC default compiler, I could compile an > application with these steps > > > g++ -c winbgim.cpp -o winbgim-g95.o > > g95 -O3 -Wall -mwindows basic_mods.f90 f03bgi.f90 f03eyes.f90 \ > winbgim-g95bis.o -L /lib/gcc/i6

A linking problem with current GCC (4.5.3)

2012-12-12 Thread Angelo Graziosi
When Cygwin had GCC-4.3.4 as GCC default compiler, I could compile an application with these steps g++ -c winbgim.cpp -o winbgim-g95.o g95 -O3 -Wall -mwindows basic_mods.f90 f03bgi.f90 f03eyes.f90 \ winbgim-g95bis.o -L /lib/gcc/i686-pc-cygwin/4.5.3 -lstdc++ \ -s -o f03eyes-g95 Now, with