www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/03/16/05:12:21

Date: Fri, 16 Mar 2001 12:06:17 +0200
From: "Eli Zaretskii" <eliz AT is DOT elta DOT co DOT il>
Sender: halo1 AT zahav DOT net DOT il
To: "Tom Hunt" <thunt1 AT falcon DOT lhup DOT edu>
Message-Id: <8011-Fri16Mar2001120617+0200-eliz@is.elta.co.il>
X-Mailer: Emacs 20.6 (via feedmail 8.3.emacs20_6 I) and Blat ver 1.8.6
CC: djgpp AT delorie DOT com
In-reply-to: <98ra9f$9rh$1@jake.esu.edu> (thunt1@falcon.lhup.edu)
Subject: Re: Linking DJGPP programs with MASM generated COFF files
References: <98ra9f$9rh$1 AT jake DOT esu DOT edu>
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

> From: "Tom Hunt" <thunt1 AT falcon DOT lhup DOT edu>
> Newsgroups: comp.os.msdos.djgpp
> Date: Thu, 15 Mar 2001 15:57:25 -0500
> 
> I'm trying to get djgpp C program to compile using a function I wrote in
> assembler.  The assembler output file is
> in coff format like it should be, but gcc won't recognize the existence of
> the function in the assembler module.  I
> keep getting unresolved externals during the link when I try calling the
> thing.

The usual gotcha with this is that a function called as `foo' from C
should be defined as `_foo' in assembly.  Did you do that?

- Raw text -


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