compilation error with intel c++ compilator 7.0 and STL queue

compilation error with intel c++ compilator 7.0 and STL queue

Hello,
i'm a STL user and when i compile my code under icc 7 (with no option),i get lots of errors like :

/usr/local/Intel/compiler70/ia32/include/stl.h(612): error: name followed by "::" must be a class or namespace name
: public queue
^
detected during instantiation of class "__Queue<_Container> [with _Container=int]" at line 42 of "my_watershed.cpp"

in my code, line 42 is :
queue fifo;

(the code works well with gcc 2.95 and 2.96 on linux SuSE 7.2 and RedHat 7.3)

i'm new with icc
any suggestion to avoid these errors ?

2 Beiträge / 0 neu
Letzter Beitrag
Nähere Informationen zur Compiler-Optimierung finden Sie in unserem Optimierungshinweis.

Hi Oliv,
I have no idea about this failure right now, but following test works -

#include
using std::queue;

int main()
{
queue fifo;
return 0;
}

Please include only required STL header files instead of stl.h

I hope this will solve your problem.
But issue pointed out by you still needs investigation.

CP

Melden Sie sich an, um einen Kommentar zu hinterlassen.