Date: Mon, 11 Jan 1999 09:59:06 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: Adnan Khaleel cc: djgpp AT delorie DOT com Subject: Re: Help with Assembly - In-Reply-To: <36997209.B16493B@ee.tamu.edu> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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.