bug-gnubg
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-gnubg] Compiling makebearoff (WinXP)


From: Massimiliano . Maini
Subject: [Bug-gnubg] Compiling makebearoff (WinXP)
Date: Mon, 20 Mar 2006 09:44:30 +0100

Hi all, I'm trying hard tobuild a Win distrib from the latest code.
I'm unable to compile makebearoff : I use the same config.h I use
to compile gnubg.exe (GUI and Python). Everything compiles fine up to
makebearoff.c :


Compiling makebearoff.c
makebearoff.c: In function `BearOff':
makebearoff.c:479: warning: dereferencing type-punned pointer will break
strict-
aliasing rules
makebearoff.c: In function `generate_os':
makebearoff.c:658: error: `INITCOMMONCONTROLSEX' undeclared (first use in
this f
unction)
makebearoff.c:658: error: (Each undeclared identifier is reported only once
makebearoff.c:658: error: for each function it appears in.)
makebearoff.c:658: error: syntax error before "InitCtrlEx"
makebearoff.c:660: error: `InitCtrlEx' undeclared (first use in this
function)
makebearoff.c:662: warning: implicit declaration of function
`InitCommonControls
Ex'
makebearoff.c: In function `NDBearoff':
makebearoff.c:857: warning: dereferencing type-punned pointer will break
strict-
aliasing rules
makebearoff.c: In function `generate_nd':
makebearoff.c:935: error: `INITCOMMONCONTROLSEX' undeclared (first use in
this f
unction)
makebearoff.c:935: error: syntax error before "InitCtrlEx"
makebearoff.c:937: error: `InitCtrlEx' undeclared (first use in this
function)
makebearoff.c: In function `BearOff2':
makebearoff.c:1193: warning: dereferencing type-punned pointer will break
strict
-aliasing rules
makebearoff.c: In function `generate_ts':
makebearoff.c:1290: error: `INITCOMMONCONTROLSEX' undeclared (first use in
this
function)
makebearoff.c:1290: error: syntax error before "InitCtrlEx"
makebearoff.c:1292: error: `InitCtrlEx' undeclared (first use in this
function)
mingw32-make: *** [extras_obj/makebearoff.o] Error 1


'InitCommonControlsEx' is dfefined in commctrl.h (included by
makebearoff.c)
like that :


Commctrl.h (under mingw/include) :

#if (_WIN32_IE >= 0x0300)
typedef struct tagINITCOMMONCONTROLSEX {
      DWORD dwSize;
      DWORD dwICC;
} INITCOMMONCONTROLSEX,*LPINITCOMMONCONTROLSEX;
#endif


First problem is that _WIN32_IE is not defined in the mingw include/*.h
(intentionally, there's a comment). So I tried to modify makebearoff.c
and define it (the value of _WIN32_IE indicates the minimal supported
version
opf IE, I used the "oldest" version, something like IE2) :

#ifdef WIN32
#define _WIN32_IE 0x0300
#include <windows.h>
#include <commctrl.h>


Now something changes, but still doesn't work :

linking makebearoff.exe
extras_obj/makebearoff.o(.text+0x96f): In function `generate_nd':
C:/gnubg-build/gnubg/makebearoff.c:940: undefined reference to
`InitCommonContro
address@hidden'
extras_obj/makebearoff.o(.text+0x164c): In function `generate_ts':
C:/gnubg-build/gnubg/makebearoff.c:1295: undefined reference to
`InitCommonContr
address@hidden'
extras_obj/makebearoff.o(.text+0x295f): In function `main':
C:/gnubg-build/gnubg/makebearoff.c:663: undefined reference to
`InitCommonContro
address@hidden'
collect2: ld returned 1 exit status
mingw32-make: *** [makebearoff_exe] Error 1


Looks like there's a missing lib/dll ... anybody has an idea ?

MaX.








reply via email to

[Prev in Thread] Current Thread [Next in Thread]