Sorry I haven't looked at the attachements.
Anyway the problem is not the far (that is equated to nothing in windows header), but the _Cdecl that is not recognized. The correct form is _cdecl.
If you put at top of your files this line:
#define _Cdecl _cdecl
The error should go away, but you will not be able anyway to compile your code. This for many reasons, as already explained by tiwag:
- this program IS written under dos and IS a 16 bits program
- pellesC is a 32bits compiler
- these graphic routines are in a 16bits library (perhaps graphic.lib)
-that lib has been compiled in 16bits (large or huge model I guess)
You cannot link together 16 and 32 bits code. And if you have 32 bits TCC compiled code, it will be in OMF format (while pellesC use COFF format) so you can't use the polink (for now, but Pelle showed interest in OMF conversion), nor the tlink (that doesn't recognize the COFF format). You could use the M$ linker that accept both, or convert the OMF library in COFF.
I don't know what is your skill level in programming, but if you find this not very understandable keep for the Tiwag good advices, continue to use the TCC for old DOS programs and start WIN32 programming with PellesC that is a very good 32bits C compiler (thankyou again Pelle).
(About COFF and OMF you'll find discussions on this forum).
Regards
F.