To Antonio: Can't compile TCBFUNCS.C

To Antonio: Can't compile TCBFUNCS.C

Postby Colin Wisbey » Tue Feb 27, 2007 10:38 am

To Antonio (or anyone else who can help):

Using BC4.5, I tried to compile TCBFUNCS.C (FW 7.01) using

BCC -c -ml -D__CLIPPER__ TCBFUNCS.C
(with and without the -D__CLIPPER__) but got the following errors:-

Borland C++ 4.52 Copyright (c) 1987, 1994 Borland International
d:\fw\source\function\tcbfuncs.c:
Error d:\fw\include\ClipApi.h 60: Multiple declaration for 'WORD'
Error d:\fw\include\ClipApi.h 61: Too many types in declaration
Error d:\fw\include\ClipApi.h 61: Need an identifier to declare
Error d:\fw\include\ClipApi.h 65: Multiple declaration for 'PWORD'
Error d:\fw\include\ClipApi.h 66: Multiple declaration for 'LPWORD'
Error d:\fw\include\ClipApi.h 67: Multiple declaration for 'PLONG'
Error d:\fw\include\ClipApi.h 69: Multiple declaration for 'PDWORD'
Error d:\fw\include\ClipApi.h 71: Enum syntax error
Error d:\fw\include\ClipApi.h 71: Unexpected }
Warning d:\fw\source\function\tcbfuncs.c 208: 'LineCount' is assigned a value that is never used in function TCDRAWCELL
Warning d:\fw\source\function\tcbfuncs.c 290: 'LineCount' is assigned a value that is never used in function GetWindowRow
Warning d:\fw\source\function\tcbfuncs.c 359: 'LineCount' is assigned a value that is never used in function ATCBRWPOSR
*** 9 errors in Compile ***

I am not a C programmer but PWORD etc are also in BC4.5's WINDOWS.H so I assume that is why BCC is giving the "multiple declaration" errors (eg)?

What do I need to do to compile TCBFUNCS.C? (I assume you managed to compile it successfully at your end).

TIA
Colin
Colin Wisbey
 
Posts: 56
Joined: Mon Jul 03, 2006 2:34 am

Postby Antonio Linares » Wed Feb 28, 2007 7:50 am

Colin,

Please use this flag too:

-D_WINDOWS_
regards, saludos

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

Postby Colin Wisbey » Fri Mar 02, 2007 12:36 pm

Worked. Thanks, Antonio.
Colin Wisbey
 
Posts: 56
Joined: Mon Jul 03, 2006 2:34 am

Postby nageswaragunupudi » Sun Apr 01, 2007 5:11 pm

is it possible to generat 16 bit obj compatible with clipper with bcc32.exe? or where can we obtain free copy of bcc 16 bit compliner? any help please?
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10643
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Postby Antonio Linares » Sun Apr 01, 2007 9:02 pm

> is it possible to generat 16 bit obj compatible with clipper with bcc32.exe?

No, not possible

> or where can we obtain free copy of bcc 16 bit compliner?

As far as we know, the bcc 16 bits is a commercial product
regards, saludos

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


Return to FiveWin for CA-Clipper

Who is online

Users browsing this forum: No registered users and 11 guests