delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/10/16/19:38:03

From: wemccaug AT prairienet DOT org (Wendy E. McCaughrin)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: a86 .obj files how to link?
References: <7uao80$33o$1 AT news01 DOT arb1 DOT te DOT uudial DOT us DOT uu DOT net>
Lines: 50
Message-ID: <H97O3.98$Ak5.19@firefly>
Date: Sat, 16 Oct 1999 22:40:39 GMT
NNTP-Posting-Host: 192.17.3.4
X-Complaints-To: newsmgr AT prairienet DOT org
X-Trace: firefly 940113639 192.17.3.4 (Sat, 16 Oct 1999 17:40:39 CDT)
NNTP-Posting-Date: Sat, 16 Oct 1999 17:40:39 CDT
Organization: Prairienet -- Your Community Network for East Central Illinois
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

In a previous article, sforman AT dellnet DOT com ("Susan Forman") says:

>Hello and thanks in advance for your help!
>
>I'm fairly new to all this but I have a general
>understanding of the issues involved and am good at figuring computer things
>out. I just need a little help or especially a pointer to the info that
>would tell me how to do this:
>
>I am using dos/win98, and the A86 assembler. I have generated .OBJ files
>from the asm source (along with .SYM symbol files) and now I'm trying to
>link them with my .c main program source (the asm files contain 'procedures'
>only.) Here's the command line and results:
>-------
>C:\pygmy\modex>gcc l47-7.c *.obj -o l47.exe
>l47-7.c: In function `main':
>l47-7.c:12: warning: return type of `main' is not `int'
>l47-1.obj: file not recognized: File format not recognized
>-------
>(some of you may recognize that I'm playing with Michael Abrash's graphics
>routines :) I know about and gratefully use Allegro, but I have my reasons
>for also doing this)
>
>I spent some time looking but I couldn't find anything to tell me how to
>link these properly. Does the djgpp linker just not know A86's object
>format? Can it be 'taught'? Can I convert to a different .OBJ format? Is
>there a BFD back end for A86 obj files? Can I output compatible .o format
>files from A86?
>
>I would love to be told where I could find this out on my own, but if one of
>you knows and cares to tell me directly that would also be awesome!
>Thank you thank you thank you again for your time and effort,
>sorry to be so long winded,
>
>-Pedro
>rogue_pedro AT yahoo DOT com
>
>
>

 I have run into similar problems and can tell you this: I have had no
 problems at all linking A86 .obj files using Borland Tlink (for the
 past five years). If you have a Turbo-C version of your C program and
 tcc it with the .obj's, you  should have no problem.
 Sorry I can't help with `gcc' -- luckily, I finally got it to link
 with NASM .o's (which `gcc' does very well with no complications).

 Good Luck.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019