🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.msdos.programmer
Article #3486

Linking MSC v6.00a to TP v6.0

#3486
From: Mark Thomson
Date: Mon, 05 Oct 1992 01:52
28 lines
1312 bytes
Problems linking Microsoft C version 6.00A to Turbo Pascal version 6.0.

I am trying to link MSC functions to TP, but cannot get the Pascal to
compile successfully. Minimal code sections which will NOT link are as
follows.

C CODE (cfile.c):          PASCAL CODE:

int far CFunc()            function CFunc : integer ; far ; external ;
{                          {$L cfile.obj }
return(2) ;                                 -OR-
}                          function _CFunc : integer ; far ; external ;
                           {$L cfile.obj }

The C code is compiled as

  cl /c /AL /Fc /G2 /Gs cfile.c

and the resulting CFILE.COD appears to satisfy the segment naming
conventions that TP requires. Nevertheless, TP generates a compile-time
error: "Invalid relocatable reference". Any help on this matter
would be greatly appreciated. Thanks.

Mark Thomson
University of Auckland.
  

          
Technical Details
Message-ID: <1992Oct5.015219.12922@ccu1.aukuni.ac.nz>
Path: arc1-ca.pugleaf.net!sparky!uunet!munnari.oz.au!comp.vuw.ac.nz!waikato.ac.nz!aukuni.ac.nz!mmt

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!munnari.oz.au!comp.vuw.ac.nz!waikato.ac.nz!aukuni.ac.nz!mmt
Newsgroups: comp.os.msdos.programmer,comp.lang.c,comp.lang.pascal
Subject: Linking MSC v6.00a to TP v6.0
Message-ID: <1992Oct5.015219.12922@ccu1.aukuni.ac.nz>
From: mmt@ccu1.aukuni.ac.nz (Mark Thomson)
Date: Mon, 5 Oct 1992 01:52:19 GMT
Organization: University of Auckland, New Zealand.
Lines: 29