GFortran 44 optimizations and Intel SSE4

Steve Kargl sgk@troutmask.apl.washington.edu
Tue Nov 1 21:26:00 GMT 2011


On Tue, Nov 01, 2011 at 10:21:28PM +0100, Daniel Franke wrote:
> On Tuesday 01 November 2011 22:14:43 Jacob Anderson wrote:
> > If I specify all BUT the -O3, it works fine and I get an executable without
> > any link errors.
> > 
> > Only the "-O3" option causes the link errors.
> 
> -O3 enables a batch of options, see the documentation for details.
> 
> The link error you quoted
> 
> > undefined reference to `std::basic_ostream<char, std::char_traits<char>
> > >& std::__ostream_insert<char, std::char_traits<char>
> > >(std::basic_ostream<char, std::char_traits<char> >&, char const*,
> > long)'
> 
> is related to C++, not Fortran. You may want to link libstdc++ for that.
> 

Which looks like a bug.  Compiling something with 'gfortran -O3'
should never require C++ especially its IO routines!

-- 
Steve



More information about the Fortran mailing list