gcc 7.2 compiling \fw\sources\calldll.c

gcc 7.2 compiling \fw\sources\calldll.c

Postby reinaldocrespo » Wed Nov 07, 2018 11:31 pm

Hello everyone!

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

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.
User avatar
reinaldocrespo
 
Posts: 979
Joined: Thu Nov 17, 2005 5:49 pm
Location: Fort Lauderdale, FL

Re: gcc 7.2 compiling \fw\sources\calldll.c

Postby Antonio Linares » Fri Nov 09, 2018 3:58 pm

Reinaldo,

fwh\sources\calldll.c is not compatible with gcc

We use a different one (not provided in FWH\sources) for gcc and it is included in FWH libs

If you need its source code, please send me an email
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42089
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 115 guests