Clinton A. Pierce wrote:
The suggestion was made last week that I try filtering the compiled BASIC stuff through IMCC for performance reasons and whatnot.
IMCC seems to want headers that MSVC++ isn't happy with:
cl -nologo -O1 -MD -DNDEBUG -DWIN32 -D_CONSOLE -DNO_STRICT
-I../../include -Feim
cparser.obj -c imcparser.c
imcparser.c
C:\Program Files\Microsoft Visual Studio .NET\Vc7\PlatformSDK\Include\WinDef.h(159) : error
C2059: syntax error : 'constant'
Can you have a look at the stated line, maybe its some kind of a name clash. Would also be nice for giure out, by which file WinDef.h got pulled in.
It's because in imcparser.c the token CONST is used. In the standard Windows stuff, const is defined as
#define CONST const
Which of course is a keyword and used everywhere in Win32 header files like:
typedef CONST WTHINGY *FOO, *BAR...
Changing this to CONSTX in imcparser.c (or any other token) seems to be okay. I don't have the necessary tools to fix this directly (bison, etc..).
Also in imc.c ~431:
done: }
Makes MSVC unhappy. Changing this to:
done: 1; }
Makes everything all right so far, but I still don't quite have a working imcc. Still slugging through all of this.