Mail Archives: djgpp/1998/01/16/06:24:43
From: | "Aidan Ruff" <aidan AT ellingham-hall DOT compulink DOT co DOT uk>
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | Assembler files - linking in external routines
|
Date: | Wed, 14 Jan 1998 13:04:35 -0000
|
Message-Id: | <884782637.9007.0.nnrp-04.c2deaf3c@news.demon.co.uk>
|
Nntp-Posting-Host: | butca.demon.co.uk
|
Lines: | 41
|
To: | djgpp AT delorie DOT com
|
Dj-Gateway: | from newsgroup comp.os.msdos.djgpp
|
I have a program which uses an assembler file (some interrupt stuff). It
generates a wrapper for a C routine in my main program - called 'irq'. When
I compile a little test program it links fine, but when I use it with my
main project it doesn't resolve the 'irq' function and can't link.
eg
<file 1 - C program>
void irq (void)
{
... code
}
main ()
{
....code
}
<EOF>
<file 2 - assembler >
.extern _irq
_irq proc ..etc
<EOF>
I guess that the compiler is screwing up the labels. I imagine that there is
a compiler setting wrong, but where?
If I could generate some assembly output from the compiler, I could have a
look at it, but I can't figure out how to do that.
Help!
- Raw text -