To Antonio: Can't compile TCBFUNCS.C

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

To Antonio: Can't compile TCBFUNCS.C

Post by Colin Wisbey »

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
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Colin,

Please use this flag too:

-D_WINDOWS_
regards, saludos

Antonio Linares
www.fivetechsoft.com
Colin Wisbey
Posts: 56
Joined: Mon Jul 03, 2006 2:34 am

Post by Colin Wisbey »

Worked. Thanks, Antonio.
User avatar
nageswaragunupudi
Posts: 8017
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Contact:

Post by nageswaragunupudi »

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
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

> 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
Post Reply