hi guys,
I'm trying to compile lates fltk revision... and I can't :x (the same happens with previous releases).
Debug code:
C:\fltk-2.0.x-r5642\src\win32\run.cxx:153: error: expected constructor, destructor, or type conversion before '(' token
C:\fltk-2.0.x-r5642\src\win32\run.cxx:154: warning: `__stdcall__' attribute only applies to function types
C:\fltk-2.0.x-r5642\src\win32\run.cxx:154: error: `HIMC' was not declared in this scope
C:\fltk-2.0.x-r5642\src\win32\run.cxx:154: error: `LPCOMPOSITIONFORM' was not declared in this scope
C:\fltk-2.0.x-r5642\src\win32\run.cxx:154: error: initializer expression list treated as compound expression
C:\fltk-2.0.x-r5642\src\win32\run.cxx:155: warning: `__stdcall__' attribute only applies to function types
C:\fltk-2.0.x-r5642\src\win32\run.cxx:155: error: `HIMC' was not declared in this scope
C:\fltk-2.0.x-r5642\src\win32\run.cxx:155: error: expected primary-expression before ')' token
C:\fltk-2.0.x-r5642\src\win32\run.cxx:155: error: initializer expression list treated as compound expression
C:\fltk-2.0.x-r5642\src\win32\run.cxx:156: error: `HIMC' has not been declared
C:\fltk-2.0.x-r5642\src\win32\run.cxx:156: error: ISO C++ forbids declaration of `parameter' with no type
C:\fltk-2.0.x-r5642\src\win32\run.cxx:157: error: expected constructor, destructor, or type conversion before '(' token
C:\fltk-2.0.x-r5642\src\win32\run.cxx:176: error: `pfnImmGetContext' was not declared in this scope
C:\fltk-2.0.x-r5642\src\win32\run.cxx:184: error: `pfnImmAssociateContext' was not declared in this scope
C:\fltk-2.0.x-r5642\src\win32\run.cxx:230: error: `HIMC' does not name a type
C:\fltk-2.0.x-r5642\src\win32\run.cxx:232: error: `HIMC' was not declared in this scope
C:\fltk-2.0.x-r5642\src\win32\run.cxx:232: error: expected `;' before "himc"
C:\fltk-2.0.x-r5642\src\win32\run.cxx:233: error: `himc' was not declared in this scope
C:\fltk-2.0.x-r5642\src\win32\run.cxx:234: error: `himcold' was not declared in this scope
C:\fltk-2.0.x-r5642\src\win32\run.cxx:235: error: `pfnImmAssociateContext' was not declared in this scope
C:\fltk-2.0.x-r5642\src\win32\run.cxx:237: error: `himc' was not declared in this scope
C:\fltk-2.0.x-r5642\src\win32\run.cxx:238: error: `COMPOSITIONFORM' was not declared in this scope
C:\fltk-2.0.x-r5642\src\win32\run.cxx:238: error: expected `;' before "cfs"
C:\fltk-2.0.x-r5642\src\win32\run.cxx:240: error: `cfs' was not declared in this scope
C:\fltk-2.0.x-r5642\src\win32\run.cxx:240: error: `CFS_POINT' was not declared in this scope
C:\fltk-2.0.x-r5642\src\win32\run.cxx:243: error: `pfnImmSetCompositionWindow' cannot be used as a function
C:\fltk-2.0.x-r5642\src\win32\run.cxx:245: error: `pfnImmSetCompositionFontW' cannot be used as a function
C:\fltk-2.0.x-r5642\src\win32\run.cxx:247: error: `himcold' was not declared in this scope
C:\fltk-2.0.x-r5642\src\win32\run.cxx:250: error: `himcold' was not declared in this scope
C:\fltk-2.0.x-r5642\src\win32\run.cxx:251: error: `HIMC' was not declared in this scope
C:\fltk-2.0.x-r5642\src\win32\run.cxx:251: error: expected `;' before "himc"
C:\fltk-2.0.x-r5642\src\win32\run.cxx:252: error: `pfnImmAssociateContext' was not declared in this scope
C:\fltk-2.0.x-r5642\src\win32\run.cxx:253: error: `himc' was not declared in this scope
:: === Build finished: 31 errors, 2 warnings ===
Anyone know why?
Are you sure?
I just compiled it again and got the same errors like you.
Then I changed line 92/93 file src\win32\run.cxx from
// USE_IMM - define it non-zero if you want Input Method
#define USE_IMM 1
to
// USE_IMM - define it non-zero if you want Input Method
#define USE_IMM 0
and it compiled without errors (msys+mingw and visual c++ 6.0)