![]() |
Blitz Support : |
From: Julian C. Cummings (cummings_at_[hidden])
Date: 2005-02-25 05:51:27
Yes, this is a very annoying problem that I reported to Intel some time ago,
but they seem to have done nothing about it. Another solution beside the
one that Patrick has suggested would be to add the flag -cxxlib-icc to
request use of the Intel headers and C++ runtime libraries rather than the
gcc ones. For some reason, they have made gcc compatibility with the
-cxxlib-gcc the default behaviour, even though their compiler cannot handle
header files from gcc 3.3 or later. I think if you add -cxxlib-icc to
-strict_ansi, it will work properly. You might consider adding the
-cxxlib-icc flag to your icpc.cfg file to make this a default flag for your
Intel C++ compiler installation.
Regards, Julian C.
Dr. Julian C. Cummings
Staff Scientist, CACR/Caltech
(626) 395-2543
cummings_at_[hidden]
> -----Original Message-----
> From: blitz-support-bounces_at_[hidden]
> [mailto:blitz-support-bounces_at_[hidden]] On Behalf Of
> Patrick Guio
> Sent: Thursday, February 24, 2005 5:56 AM
> To: Support list for Blitz++
> Subject: Re: [Blitz-support] Blitz-0.8 and Intel 8.1
>
>
> On Thu, 24 Feb 2005, Einar Otnes wrote:
>
> Hi Einar,
>
> The problem is not a blitz problem but a compatibility
> problem between
> icc 8.1 (and not 8.0) and g++. icc 8.1 uses the g++ headers
> but the flag
> -strict_ansi can not be used...
> You can try to compile the following "ansi" piece of code
>
> //hello.cc
> #include <iostream>
> int main()
> {
> std::cout << "Hello world!" << std::endl;
> }
>
> with the command "icpc --strict_ansi hello.cc" it will fail...
>
> A work around is to remove the option --strict_ansi from
> default preset Try to run configure with the following options
>
> ./configure --disable-cxx-flags-preset CXX=icpc CXXFLAGS="ansi"
>
> That should do it.
>
> Cheers,
>
> Patrick
>
>
> > I've tried to compile Blitz-0.8 using the intel 8.1
> compiler with no
> > luck. Apparently, the configure script is running fine, but when I
> > "make lib" the compilation stop due to the error
> >
> > /usr/include/c++/3.2.3/bits/stl_alloc.h(979): error:
> "template" is not
> > allowed extern template class allocator<char>;
> >
> > My configure command is
> > ./configure CXX=icpc CC=icc F77=ifort
> >
> > I found on this webpage,
> >
> http://softwareforums.intel.com/ids/board/message?board.id=16&message.
> > id=2235,
> >
> > that it might be due to the
> > "-strict_ansi" option which should be turned off. How do I do that?
> > I've tried "--disable-strict_ansi" but that made no effect.
> >
> > Any suggestions?
> >
> > Thanks,
> > Einar Otnes
> _______________________________________________
> Blitz-support mailing list
> Blitz-support_at_[hidden]
> http://www.oonumerics.org/mailman/listinfo.cgi/blitz-support
>