cl -DBUILD_tk -Oti -nologo -c -W3 -YX -Fp.\Release\tk_Dynamic\ -QI0f -MD -I"..\win" -I"..\generic" -I"..\bitmaps" -I"..\xlib" -I "C:\TclTk842\tcl8.4.2\win" -I "C:\TclTk842\tcl8.4.2\generic"
-DUSE_TCL_STUBS -Fo.\Release\tk_Dynamic\ @C:\DOCUME~1\BRADJE~1\LOCALS~1\Temp\nma04068.
tkCanvBmap.c
..\generic\tkCanvBmap.c(110) : error C2373: 'CreateBitmap' : redefinition; different type modifiers
C:\PROGRA~1\MICROS~2\VC98\INCLUDE\wingdi.h(2622) : see declaration of 'CreateBitmap'
..\generic\tkCanvBmap.c(130) : error C2152: 'initializing' : pointers to functions with different attributes
..\generic\tkCanvBmap.c(172) : error C2373: 'CreateBitmap' : redefinition; different type modifiers
C:\PROGRA~1\MICROS~2\VC98\INCLUDE\wingdi.h(2622) : see declaration of 'CreateBitmap'
tkCursor.c
..\generic\tkCursor.c(48) : error C2373: 'GetCursor' : redefinition; different type modifiers
C:\PROGRA~1\MICROS~2\VC98\INCLUDE\winuser.h(6279) : see declaration of 'GetCursor'
..\generic\tkCursor.c(153) : warning C4087: 'GetCursor' : declared with 'void' parameter list
..\generic\tkCursor.c(153) : warning C4133: '=' : incompatible types - from 'struct HICON__ *' to 'struct TkCursor *'
..\generic\tkCursor.c(195) : warning C4087: 'GetCursor' : declared with 'void' parameter list
..\generic\tkCursor.c(195) : warning C4133: 'initializing' : incompatible types - from 'struct HICON__ *' to 'struct TkCursor *'
..\generic\tkCursor.c(231) : error C2373: 'GetCursor' : redefinition; different type modifiers
C:\PROGRA~1\MICROS~2\VC98\INCLUDE\winuser.h(6279) : see declaration of 'GetCursor'
NMAKE : fatal error U1077: 'cl' : return code '0x2'
Stop.
Apparently "CreateBitmap", as defined in tkCanvBmap.c, conflicts with the "wingdi.h" definition. Additionally, "GetCursor" is a bad redefinition of "GetCursor" from "winuser.h".
I'm stumped. This is my first time to try to compile this. Has anyone else experienced these errors while building Tk 8.4.2?? If so, what is the solution?
Thank you in advance,
Brad Jennings
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Platform: Windows 2000
Compiler: MSVC++ v6.0
Package: Tk8.4.2
After successfully compiling Tcl 8.4.2 in C:\TCL I attempted to compile Tk 8.4.2 using the following command line.
nmake -f makefile.vc INSTALLDIR="C:\TCL" TCLDIR="C:\TclTk842\tcl8.4.2"
I get the following errors:
cl -DBUILD_tk -Oti -nologo -c -W3 -YX -Fp.\Release\tk_Dynamic\ -QI0f -MD -I"..\win" -I"..\generic" -I"..\bitmaps" -I"..\xlib" -I "C:\TclTk842\tcl8.4.2\win" -I "C:\TclTk842\tcl8.4.2\generic"
-DUSE_TCL_STUBS -Fo.\Release\tk_Dynamic\ @C:\DOCUME~1\BRADJE~1\LOCALS~1\Temp\nma04068.
tkCanvBmap.c
..\generic\tkCanvBmap.c(110) : error C2373: 'CreateBitmap' : redefinition; different type modifiers
C:\PROGRA~1\MICROS~2\VC98\INCLUDE\wingdi.h(2622) : see declaration of 'CreateBitmap'
..\generic\tkCanvBmap.c(130) : error C2152: 'initializing' : pointers to functions with different attributes
..\generic\tkCanvBmap.c(172) : error C2373: 'CreateBitmap' : redefinition; different type modifiers
C:\PROGRA~1\MICROS~2\VC98\INCLUDE\wingdi.h(2622) : see declaration of 'CreateBitmap'
tkCursor.c
..\generic\tkCursor.c(48) : error C2373: 'GetCursor' : redefinition; different type modifiers
C:\PROGRA~1\MICROS~2\VC98\INCLUDE\winuser.h(6279) : see declaration of 'GetCursor'
..\generic\tkCursor.c(153) : warning C4087: 'GetCursor' : declared with 'void' parameter list
..\generic\tkCursor.c(153) : warning C4133: '=' : incompatible types - from 'struct HICON__ *' to 'struct TkCursor *'
..\generic\tkCursor.c(195) : warning C4087: 'GetCursor' : declared with 'void' parameter list
..\generic\tkCursor.c(195) : warning C4133: 'initializing' : incompatible types - from 'struct HICON__ *' to 'struct TkCursor *'
..\generic\tkCursor.c(231) : error C2373: 'GetCursor' : redefinition; different type modifiers
C:\PROGRA~1\MICROS~2\VC98\INCLUDE\winuser.h(6279) : see declaration of 'GetCursor'
NMAKE : fatal error U1077: 'cl' : return code '0x2'
Stop.
Apparently "CreateBitmap", as defined in tkCanvBmap.c, conflicts with the "wingdi.h" definition. Additionally, "GetCursor" is a bad redefinition of "GetCursor" from "winuser.h".
I'm stumped. This is my first time to try to compile this. Has anyone else experienced these errors while building Tk 8.4.2?? If so, what is the solution?
Thank you in advance,
Brad Jennings