I'm trying to compile fwh source file calldll.c using MinGW32 7.2 I'm getting some errors. I'm hoping someone here can point me in the right direction. I'm able to compile just fine using borland c++. The problem is when I switch c compilers to MinGW 7.2. Here are some of the errors I'm talking about:
- Code: Select all Expand view RUN
hbmk2: Compiling...
/winapi/calldll.c:75:30: error: unknown type name 'PCLIPVAR';
did you mean 'CLIPDATA'?
static LPWORD GetNumAddress( PCLIPVAR pVar )
^~~~~~~~
CLIPDATA
/winapi/calldll.c: In function 'GetLongAddress':
/winapi/calldll.c:92:11: warning: array subscript has type 'c
har' [-Wchar-subscripts]
paLongs[ b ] = lValue;
^
/winapi/calldll.c:94:21: warning: array subscript has type 'c
har' [-Wchar-subscripts]
return &( paLongs[ b ] );
^
At top level:
/winapi/calldll.c:381:13: warning: 'power' defined but not us
ed [-Wunused-function]
static LONG power( LONG nPower )
^~~~~
/winapi/calldll.c:90:15: warning: 'GetLongAddress' defined bu
t not used [-Wunused-function]
static LPLONG GetLongAddress( LONG * paLongs, char b, LONG lValue )
^~~~~~~~~~~~~~
hbmk2 [MpServ]: Error: Running C/C++ compiler. 1
gcc.exe -c -O3 -fno-ident -W -Wall -Wlogical-op -Wduplicated-cond -Wshift-negat
ive-value -Wnull-dereference -m32 -pipe -If:/hb3432_mingw_1712201340/include -I/
ads10/acesdk -I/hb3432_mingw_1712201340/include -I/mp10/shared/include -I/fwh_20
17_05/include -If:/hb3432_mingw_1712201340/contrib/hbtip -If:/hb3432_mingw_17122
01340/contrib/hbssl -If:/hb3432_mingw_1712201340/contrib/rddads -If:/hb3432_ming
w_1712201340/contrib/hbct -If:/hb3432_mingw_1712201340/contrib/xhb -If:/hb3432_m
ingw_1712201340/contrib/hbwin -If:/hb3432_mingw_1712201340/contrib/hbmzip f:/mp1
0/services/obj/Sql_funcs.c /fwh_2017_05/source/winapi/calldll.c
F:\Mp10\Services>
Thank you all;
Reinaldo.