On Tuesday 14 October 2008 02:14:24 Klaas-Jan Stol wrote: > In order to fix the 'inconsistent dll linkage' errors on windows (and also > the warnings during compiling the parser/lexer of imcc), 2 defines must be > added. > > These are: > > #define YYMALLOC > #define YYFREE > > These must occur /before/ #including imclexer.h in imcc.y
I don't have an imclexer.h file, but does this patch do the trick? -- c
=== compilers/imcc/imcc.y ================================================================== --- compilers/imcc/imcc.y (revision 31991) +++ compilers/imcc/imcc.y (local) @@ -22,13 +22,14 @@ #include "imc.h" #include "parrot/dynext.h" #include "pbc.h" -#include "parser.h" -#include "optimizer.h" /* prevent declarations of malloc() and free() in the generated parser. */ #define YYMALLOC #define YYFREE +#include "parser.h" +#include "optimizer.h" + #ifndef YYENABLE_NLS # define YYENABLE_NLS 0 #endif