Blitz logo

Blitz Support :

From: Patrick Guio (Patrick.Guio_at_[hidden])
Date: 2005-02-24 08:55:48


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