This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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}


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]