🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.ibm.pc.programmer
Article #1133

Re: linking with Borland-C 2.0

#1133
From: mguyott
Date: Thu, 04 Apr 1991 00:01
27 lines
1597 bytes
I know of a way around problem (2).  You need to use a "response" file.

What I did in my make file was to add the following:

OBJ=$(OBJ1) $(OBJ2) $(OBJ3)
LFLAGS=Your link flags here!
TARG=Your application name here.
MODEL=Your memory model here.

$(TARG).exe : $(OBJ)
        echo $(LFLAGS) + > tlink.rsp
        echo $(OBJ1)   + >> tlink.rsp
        echo $(OBJ2)   + >> tlink.rsp
        echo $(OBJ3)   + >> tlink.rsp
        tlink c0w$(MODEL) @tlink.rsp, $(TARG).exe, etc. etc. etc.

Be sure to link c0w$(MODEL) before linking your other .obj files.  I
don't remember why but I do remember Borland recommending this.  I hope
this helps.  Marc
----
Two of the worst things we teach our children are that a knowledge of science
is nice but not necessary, and a knowledge of sex is necessary but not nice.

Marc Guyott              Constellation Software, Inc.          (508) 620-2800
                         Framingham, Mass. 01701 USA                Ext. 3135
mguyott@primerd.prime.com       ...!{uunet, decwrl}!primerd.prime.com!mguyott
Technical Details
Message-ID: <100400002@eriador>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!sdd.hp.com!spool.mu.edu!snorkelwacker.mit.edu!primerd!primerd!eriador!mguyott
References: <163007@<1991Apr3>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!sdd.hp.com!spool.mu.edu!snorkelwacker.mit.edu!primerd!primerd!eriador!mguyott
From: mguyott@eriador.prime.com
Newsgroups: comp.sys.ibm.pc.programmer
Subject: Re: linking with Borland-C 2.0
Message-ID: <100400002@eriador>
Date: 4 Apr 91 00:01:46 GMT
Article-I.D.: eriador.100400002
References: <163007@<1991Apr3>
Lines: 27
Nf-ID: #R:<1991Apr3:-16300700:eriador:100400002:000:1041
Nf-From: eriador.prime.com!mguyott    Apr  3 15:00:00 1991