GCC problem: in template

Posted by Abdul jalil on Stack Overflow See other posts from Stack Overflow or by Abdul jalil
Published on 2010-03-16T11:24:10Z Indexed on 2010/03/16 11:26 UTC
Read the original article Hit count: 347

Filed under:
|

i have redhat with gcc 4.1.1 i have compile as "gcc test.c" and give the following error

Error : expected '=' ,',' , ';' , ásm' or '__ attribute__' before '<' token

the code in "test.c" is as follow

template class A { public: T foo; };

© Stack Overflow or respective owner

Related posts about gcc

Related posts about c++