Page 1 of 1

To Antonio: Can't compile TCBFUNCS.C

Posted: Tue Feb 27, 2007 10:38 am
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

Posted: Wed Feb 28, 2007 7:50 am
by Antonio Linares
Colin,

Please use this flag too:

-D_WINDOWS_

Posted: Fri Mar 02, 2007 12:36 pm
by Colin Wisbey
Worked. Thanks, Antonio.

Posted: Sun Apr 01, 2007 5:11 pm
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?

Posted: Sun Apr 01, 2007 9:02 pm
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