🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Linking Problems

#40
From: Harald Milz
Date: Thu, 29 Oct 1992 17:09
28 lines
1799 bytes
In article <1992Oct28.015555.23775@monu6.cc.monash.edu.au>, eda735a@monu6.cc.monash.edu.au (P.E. Mazur) writes:
|> This should be an easy one guys.  Ive written a simple little 286 assembler
|> program, and assembled it with Turbo Borland Assembler like this:
|>     tasm demo
|> Next, I wrote a little C program and compiled it using Turbo C (5.5 I think):
|>     tcc -c intro
|> 
|> Now I hoped that I would get two link files which I could then link together
|> using either the Assembler Tlink program or the C tcc program.  The Tlink
|> program complained that the labels in the C file were not recognised, and
|> I havent been able to figure out how to use tcc to link them together either.
|> 
|> The bottom line:  HOW DO I LINK THE ASSEMBLER FILE WITH THE C FILE???
|> 
|> Anyone know the Tcc syntax for doing this?  (those criptic paramaters are a
|> real pain!)
|> 
|> 				- Shem

Try
  tcc -c intro demo.obj
and read your handbook.
-- 

|Dipl.-Ing. Harald Milz                   |    EMail:		hm@ix.de |
|iX - Multiuser Multitasking Magazin      |    FAX:    +49 511 547 47 33 |
|D-3000 Hannover 61, Helstorfer Str. 7    |    Tel.:   +49 511 547 47 66 |
Technical Details
Message-ID: <1992Oct29.170928.9587@opus40.ix.de>
Path: arc1-ca.pugleaf.net!sparky!uunet!news.encore.com!csar!foxtail!sdd.hp.com!elroy.jpl.nasa.gov!swrinde!zaphod.mps.ohio-state.edu!darwin.sura.net!paladin.american.edu!news.univie.ac.at!hp4at!mcsun!Germany.EU.net!rz.uni-hildesheim.de!ix.de!hm
References: <1992Oct28.015555.23775@monu6.cc.monash.edu.au>

Show Full Headers
Complete Article Headers
Newsgroups: comp.os.msdos.programmer
Path: arc1-ca.pugleaf.net!sparky!uunet!news.encore.com!csar!foxtail!sdd.hp.com!elroy.jpl.nasa.gov!swrinde!zaphod.mps.ohio-state.edu!darwin.sura.net!paladin.american.edu!news.univie.ac.at!hp4at!mcsun!Germany.EU.net!rz.uni-hildesheim.de!ix.de!hm
From: hm@opus40.ix.de (Harald Milz)
Subject: Re: Linking Problems
Message-ID: <1992Oct29.170928.9587@opus40.ix.de>
Keywords: Asm Object file with C Object file
Sender: hm@opus40.ix.de (Harald Milz)
Organization: iX-Redaktion
References:  <1992Oct28.015555.23775@monu6.cc.monash.edu.au>
Date: Thu, 29 Oct 1992 17:09:28 GMT
Lines: 28