Mail Archives: djgpp/1998/10/26/09:48:04
Hi,
The application that I am trying to implement changes a certain text to a
text in a different format, given some rules.
When I was trying to set the standard type to a typedef'd datatype (i.e. a
char[n] datatype), I got the following error message
gcc -c test_tab.c
bison.simple: In function `yyparse':
bison.simple:457: incompatible types in assignment
bison.simple:479: incompatible types in assignment
bison.simple:516: incompatible types in assignment
bison.simple:685: incompatible types in assignment
make.exe: *** [test_tab.o] Error 1
After inspection, these errors where due to the fact that the assignment
operator was not defined for this datatype.
Is there a workaround for this problem ? Should I change the bison.simple
file so that the correct assignment is done (A memcpy
would be more general) ?
sincerely
Krist Blomme
- Raw text -