"syntax error before `[' token" compilation error with gcc/g++ 3.0.4

Alexandre Oliva aoliva@redhat.com
Fri Apr 2 18:19:00 GMT 2004


On Apr  1, 2004, "azerty qwerty" <azerty_qwerty_75@hotmail.com> wrote:

> I tried to compile a c/c++ file with gcc/g++ 3.0.4 but got this syntax
> error.

My first guess would be that you have to replace occurrences of `<:'
with `< :' in that file.  `<:' is an alternate spelling for `['.

-- 
Alexandre Oliva             http://www.ic.unicamp.br/~oliva/
Red Hat Compiler Engineer   aoliva@{redhat.com, gcc.gnu.org}
Free Software Evangelist  oliva@{lsd.ic.unicamp.br, gnu.org}



More information about the Gcc-help mailing list