error compiling tcbfunc.c with VC++ express 2010

error compiling tcbfunc.c with VC++ express 2010

Postby l.f. » Sat Feb 12, 2011 9:17 am

Compiling tcbfunc.c with a 2.1rc1 harbour and hbmk2 I get the errors below.
I tried with cl alone using the ones in buildm.bat it doesn't work also.
I need to do a small local change.

What are the right parameters to use?

best regards,
Lorenzo Fiorini

c:\dvl\fwh\include\ClipApi.h(463) : warning C4391: 'WORD strlen(LPSTR)' : incorrect return type for intrinsic function, expected 'unsigned int'

c:\dvl\fwh\include\ClipApi.h(464) : warning C4391: 'void strcpy(LPBYTE,LPBYTE)' : incorrect return type for intrinsic function, expected 'char'

c:\dvl\fwh\include\ClipApi.h(511) : warning C4431: missing type specifier - int assumed. Note: C no longer supports default-int

tcbfuncs.c(21) : warning C4131: 'HB_FUNC' : uses old-style declarator

tcbfuncs.c(21) : warning C4431: missing type specifier - int assumed. Note: C no longer supports default-int

tcbfuncs.c(22) : warning C4013: 'hb_parnl' undefined; assuming extern returning int

tcbfuncs.c(24) : warning C4013: 'hb_parni' undefined; assuming extern returning int

tcbfuncs.c(27) : warning C4013: 'hb_parc' undefined; assuming extern returning int

tcbfuncs.c(28) : warning C4013: 'hb_parclen' undefined; assuming extern returning int

tcbfuncs.c(42) : warning C4244: 'initializing' : conversion from 'int' to 'WORD', possible loss of data

tcbfuncs.c(182) : warning C4013: 'MoveTo' undefined; assuming extern returning int

tcbfuncs.c(215) : warning C4100: 'TCDRAWCELL' : unreferenced formal parameter

tcbfuncs.c(41) : warning C4101: 'LineCount' : unreferenced local variable

tcbfuncs.c(41) : warning C4101: 'HeaderHeight' : unreferenced local variable

tcbfuncs.c(224) : warning C4131: 'HB_FUNC' : uses old-style declarator

tcbfuncs.c(224) : warning C4431: missing type specifier - int assumed. Note: C no longer supports default-int

tcbfuncs.c(224) : error C2084: function 'int HB_FUNC()' already has a body

tcbfuncs.c(17) : see previous definition of 'HB_FUNC'

tcbfuncs.c(288) : warning C4244: '=' : conversion from 'LONG' to 'WORD', possible loss of data

tcbfuncs.c(300) : warning C4131: 'HB_FUNC' : uses old-style declarator

tcbfuncs.c(300) : warning C4431: missing type specifier - int assumed. Note: C no longer supports default-int

tcbfuncs.c(301) : warning C4013: 'hb_retni' undefined; assuming extern returning int

tcbfuncs.c(312) : warning C4131: 'HB_FUNC' : uses old-style declarator

tcbfuncs.c(312) : warning C4431: missing type specifier - int assumed. Note: C no longer supports default-int

tcbfuncs.c(314) : warning C4244: 'initializing' : conversion from 'int' to 'WORD', possible loss of data

tcbfuncs.c(315) : warning C4244: 'initializing' : conversion from 'int' to 'WORD', possible loss of data

tcbfuncs.c(316) : warning C4244: 'initializing' : conversion from 'int' to 'WORD', possible loss of data

tcbfuncs.c(329) : warning C4244: '=' : conversion from 'LONG' to 'WORD', possible loss of data

tcbfuncs.c(356) : warning C4013: 'hb_reta' undefined; assuming extern returning int

tcbfuncs.c(362) : warning C4013: 'hb_storvni' undefined; assuming extern returning int
l.f.
 
Posts: 3
Joined: Sun Jan 23, 2011 9:52 am

Re: error compiling tcbfunc.c with VC++ express 2010

Postby l.f. » Sat Feb 12, 2011 5:01 pm

It seems enough to add -D__HARBOUR__.

Am I correct?

best regards,
Lorenzo Fiorini
l.f.
 
Posts: 3
Joined: Sun Jan 23, 2011 9:52 am


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 89 guests