Author Topic: FLTK 2.0.x-r5642 and C::B r3526 compile errors...  (Read 8586 times)

Angelo

  • Guest
FLTK 2.0.x-r5642 and C::B r3526 compile errors...
« on: February 07, 2007, 02:56:39 pm »
hi guys,
I'm trying to compile lates fltk revision... and I can't  :x (the same happens with previous releases).
Debug code:

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?

Offline raph

  • Almost regular
  • **
  • Posts: 242
Re: FLTK 2.0.x-r5642 and C::B r3526 compile errors...
« Reply #1 on: February 07, 2007, 03:36:59 pm »
Hi,
go to src/win32/run.cxx and change
Code
#define USE_IMM 1
to
Code
#define USE_IMM 0

Angelo

  • Guest
Re: FLTK 2.0.x-r5642 and C::B r3526 compile errors...
« Reply #2 on: February 07, 2007, 03:59:27 pm »
I had tried this, but it didn't helped :/

Offline raph

  • Almost regular
  • **
  • Posts: 242
Re: FLTK 2.0.x-r5642 and C::B r3526 compile errors...
« Reply #3 on: February 07, 2007, 05:15:26 pm »
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
Code
// USE_IMM - define it non-zero if you want Input Method
#define USE_IMM 1
to
Code
// 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)

Offline Dahman

  • Multiple posting newcomer
  • *
  • Posts: 16
Re: FLTK 2.0.x-r5642 and C::B r3526 compile errors...
« Reply #4 on: February 08, 2007, 10:29:46 am »
add imm.h header in win32/run.cxx.
Regards