How to resolve error compiling TSBrowse with Harbour?

How to resolve error compiling TSBrowse with Harbour?

Postby hua » Tue Mar 12, 2013 7:44 am

Hi,

Trying to recompile TSBrowse 6.x lib with Harbour 3.2 + BCC5.82 + FWH11.8 gave me this error. How to go about it?
Error E2238 j:\harbour\harbour\include\clipdefs.h 84: Multiple declaration for 'WORD'
Error E2344 j:\harbour\Bcc55\include\windef.h 155: Earlier declaration of 'WORD'
Error E2238 j:\harbour\harbour\include\clipdefs.h 86: Multiple declaration for 'PWORD'
Error E2344 j:\harbour\Bcc55\include\windef.h 164: Earlier declaration of 'PWORD'
Error E2238 j:\harbour\harbour\include\clipdefs.h 106: Multiple declaration for 'BOOL'
Error E2344 j:\harbour\Bcc55\include\windef.h 153: Earlier declaration of 'BOOL'
Error E2238 j:\harbour\harbour\include\clipdefs.h 109: Multiple declaration for 'PBOOL'
Error E2344 j:\harbour\Bcc55\include\windef.h 158: Earlier declaration of 'PBOOL'
Error E2238 j:\harbour\harbour\include\clipdefs.h 118: Multiple declaration for 'HANDLE'
Error E2344 j:\harbour\Bcc55\include\winnt.h 335: Earlier declaration of 'HANDLE'
Warning W8070 SCROLL.C 75: Function should return a value in function HB_FUN_SETSCROLLRANGE
Warning W8070 SCROLL.C 101: Function should return a value in function HB_FUN_SETSCROLLPOS
Warning W8070 SCROLL.C 128: Function should return a value in function HB_FUN_GETSCROLLRANGE
Warning W8070 SCROLL.C 140: Function should return a value in function HB_FUN_GETSCROLLPOS
Warning W8070 SCROLL.C 160: Function should return a value in function HB_FUN_SETSCROLLINFO
*** 10 errors in Compile ***
 


TIA
--
hua
FWH 11.08/FWH 19.12
BCC5.82/BCC7.3
xHarbour/Harbour
hua
 
Posts: 1072
Joined: Fri Oct 28, 2005 2:27 am

Re: How to resolve error compiling TSBrowse with Harbour?

Postby Antonio Linares » Tue Mar 12, 2013 9:56 am

Hua,

What includes does that file uses at the top ?
regards, saludos

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

Re: How to resolve error compiling TSBrowse with Harbour?

Postby hua » Tue Mar 12, 2013 10:51 am

Are you refering to scroll.c Antonio? If you do, this is what I see
Code: Select all  Expand view
#include <WinTen.h>   // set proper path if needed
#include <Windows.h>
#include <ClipApi.h>  // set proper path if needed
 
FWH 11.08/FWH 19.12
BCC5.82/BCC7.3
xHarbour/Harbour
hua
 
Posts: 1072
Joined: Fri Oct 28, 2005 2:27 am

Re: How to resolve error compiling TSBrowse with Harbour?

Postby hua » Thu Sep 15, 2016 3:58 am

While migrating some module to Harbour this issue crop up again. This time I was attempting to compile TSBrowse 9 with Harbour.

Any pointers?

Code: Select all  Expand view

Borland C++ 5.82 for Win32 Copyright (c) 1993, 2005 Borland
..\source\function\TSBFUNCS.C:
Error E2238 \harbour\harbour\include\clipdefs.h 80: Multiple declaration for 'WORD'
Error E2344 \harbour\bcc55\include\windef.h 155: Earlier declaration of 'WORD'
Error E2238 \harbour\harbour\include\clipdefs.h 82: Multiple declaration for 'PWORD'
Error E2344 \harbour\bcc55\include\windef.h 164: Earlier declaration of 'PWORD'
Error E2238 \harbour\harbour\include\clipdefs.h 102: Multiple declaration for 'BOOL'
Error E2344 \harbour\bcc55\include\windef.h 153: Earlier declaration of 'BOOL'
Error E2238 \harbour\harbour\include\clipdefs.h 105: Multiple declaration for 'PBOOL'
Error E2344 \harbour\bcc55\include\windef.h 158: Earlier declaration of 'PBOOL'
Error E2238 \harbour\harbour\include\clipdefs.h 114: Multiple declaration for 'HANDLE'
Error E2344 \harbour\bcc55\include\winnt.h 335: Earlier declaration of 'HANDLE'
Error E2293 ..\source\function\TSBFUNCS.C 19: ) expected
Error E2293 ..\source\function\TSBFUNCS.C 20: ) expected
Error E2314 ..\source\function\TSBFUNCS.C 72: Call of nonfunction in function HB_FUN_TSDRAWCELL
Error E2314 ..\source\function\TSBFUNCS.C 73: Call of nonfunction in function HB_FUN_TSDRAWCELL
Error E2314 ..\source\function\TSBFUNCS.C 74: Call of nonfunction in function HB_FUN_TSDRAWCELL
Warning W8065 ..\source\function\TSBFUNCS.C 182: Call to function 'DrawBitmap' with no prototype in function HB_FUN_TSDRAWCELL
Warning W8065 ..\source\function\TSBFUNCS.C 190: Call to function 'DrawBitmap' with no prototype in function HB_FUN_TSDRAWCELL
Warning W8065 ..\source\function\TSBFUNCS.C 192: Call to function 'DrawMasked' with no prototype in function HB_FUN_TSDRAWCELL
Warning W8065 ..\source\function\TSBFUNCS.C 199: Call to function 'DrawBitmap' with no prototype in function HB_FUN_TSDRAWCELL
Warning W8065 ..\source\function\TSBFUNCS.C 207: Call to function 'DrawBitmap' with no prototype in function HB_FUN_TSDRAWCELL
Warning W8065 ..\source\function\TSBFUNCS.C 209: Call to function 'DrawMasked' with no prototype in function HB_FUN_TSDRAWCELL
Warning W8004 ..\source\function\TSBFUNCS.C 306: 'nAlign' is assigned a value that is never used in function HB_FUN_TSDRAWCELL
Warning W8019 ..\source\function\TSBFUNCS.C 408: Code has no effect in function HB_FUN_TSBRWHSCROLL
Error E2379 ..\source\function\TSBFUNCS.C 408: Statement missing ; in function HB_FUN_TSBRWHSCROLL
Error E2140 ..\source\function\TSBFUNCS.C 409: Declaration is not allowed here in function HB_FUN_TSBRWHSCROLL
Error E2140 ..\source\function\TSBFUNCS.C 410: Declaration is not allowed here in function HB_FUN_TSBRWHSCROLL
Error E2140 ..\source\function\TSBFUNCS.C 412: Declaration is not allowed here in function HB_FUN_TSBRWHSCROLL
Error E2140 ..\source\function\TSBFUNCS.C 413: Declaration is not allowed here in function HB_FUN_TSBRWHSCROLL
Error E2451 ..\source\function\TSBFUNCS.C 423: Undefined symbol 'wCols' in function HB_FUN_TSBRWHSCROLL
Error E2314 ..\source\function\TSBFUNCS.C 569: Call of nonfunction in function DrawCheck
Error E2314 ..\source\function\TSBFUNCS.C 570: Call of nonfunction in function DrawCheck
Error E2314 ..\source\function\TSBFUNCS.C 571: Call of nonfunction in function DrawCheck
Error E2314 ..\source\function\TSBFUNCS.C 572: Call of nonfunction in function DrawCheck
Error E2228 ..\source\function\TSBFUNCS.C 572: Too many error or warning messages in function DrawCheck
*** 26 errors in Compile ***
 
FWH 11.08/FWH 19.12
BCC5.82/BCC7.3
xHarbour/Harbour
hua
 
Posts: 1072
Joined: Fri Oct 28, 2005 2:27 am

Re: How to resolve error compiling TSBrowse with Harbour?

Postby Compuin » Fri Mar 24, 2017 2:24 pm

Any advise?
FWH 20.12
Hbmk2 32/64 Bits (Build 19.29.30133)
Microsoft Visual C 32 Bits
MySql 8.0.24 32/64 Bits
VS Code
Compuin
 
Posts: 1214
Joined: Tue Dec 28, 2010 1:29 pm
Location: Quebec, Canada


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 64 guests