delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/01/11/03:00:36

Date: Mon, 11 Jan 1999 09:59:06 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Adnan Khaleel <adnan AT ee DOT tamu DOT edu>
cc: djgpp AT delorie DOT com
Subject: Re: Help with Assembly -
In-Reply-To: <36997209.B16493B@ee.tamu.edu>
Message-ID: <Pine.SUN.3.91.990111095846.3893P-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com

On Sun, 10 Jan 1999, Adnan Khaleel wrote:

> Everything compiles fine even the .s file but when I link it later on, I
> get errors saying that there is an undefined reference to the functions
> in the .s file.

Why did you spare us the error messages and the rest of the info?
Without it, I'm forced into guessing.

If the guess below doesn't solve your problem, please post a complete
script of commands that compile the *.c and the .s files, put them
into the library, and link them, together with any error messages
printed during linking.

> I've done exactly the same think in UNIX and I've never
> encountered these errors.

Do the error messages refer to e.g. _restore (one underbar) or
__restore (2 underbars)?  DJGPP prepends an underbar to the C symbols,
while most Unix systems nowadays don't.  This might be the problem in
your case.  If you have posted the error messages, I could tell for
sure.

- Raw text -


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