On 12-09-96 (01:11) ARNETT CARROLL wrote to ALL
AC> I'd like to know whether Turbo Pascal OBJs can be included
in Clipper 5.2 executables via extend.
Arnett,
The 'Box' and covers of the Clipper 5.2 manuals says you can use
Pascal with Clipper, but not all Pascals are the same.
Regretably, Borland's Turbo Pascal and Borland Pascal compilers
cannot produce .OBJ files.
Turbo/Borland Pascal can produce unit (.TPU) files that are
_ONLY_ of use to the version of the compiler that it was
compiled with. Units (.TPU) files can be 'linked' into the main
program (.PAS) without their original (.PAS) source code. This
allows the units to be compiled seperately and to be distributed
and used 'without' the source code just like an .OBJ file can.
If I compile TP/BP units with version 5.5 then they are
un-useable by other versions (e.g. 4.0, 6.0, 7.0). The only way
to utilize a .TPU with a different version compiler is to have
the source (.PAS) files that produced the .OBJ files.
Most other Pascal compilers can produce .OBJ files. Also
assemblers and c/c++ compilers usually produce .OBJ files that
can be used by Clipper.
BTW: TP/BP can link in OBJ files with the $L directive.
From the online help in BP 7.0:
{$L FileName}
Instructs the compiler to link the named file with the program
or unit being compiled.
The $L directive is used to link with code written in assembly
languagefor subprograms declared to be external.
The named file must be an Intel relocatable object file (.OBJ
file).
The default extension for FileName is .OBJ.
{====}
Sorry for the 'Not so good' news,
Steve
--- InterEcho 1.19
---------------
* Origin: PC-Ohio PCBoard * Cleveland, OH * 216-381-3320 (1:157/200)
|