Mail Archives: djgpp/1999/01/11/03:00:36
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 -