#66 Re: [Codigo Fuente] Compilador para Java, hecho en C++
Para AGUSTIN_RAMONE, te cuento que el codigo que pusiste para el compilador Java hecho en c++ me da lo siguiente:
g++ -Wall -c FlexLexer.cpp
In file included from jcc-analex.lex:7:
data.hpp:12: error: expected initializer before ‘<’ token
data.hpp:13: error: expected initializer before ‘<’ token
data.hpp:14: error: expected initializer before ‘<’ token
data.hpp:15: error: expected initializer before ‘<’ token
data.hpp:16: error: expected initializer before ‘<’ token
data.hpp:37: error: ‘string’ no nombra a un tipo
data.hpp:38: error: ‘string’ no nombra a un tipo
data.hpp:43: error: ‘string’ no nombra a un tipo
data.hpp:44: error: ‘string’ no nombra a un tipo
data.hpp:45: error: ISO C++ prohíbe la declaración de ‘list’ sin tipo
data.hpp:45: error: expected ‘;’ before ‘<’ token
data.hpp:49: error: expected template-name before ‘<’ token
data.hpp:49: error: expected `{' before ‘<’ token
data.hpp:49: error: expected unqualified-id before ‘<’ token
make: *** [FlexLexer.o] Error 1