Mail Archives: djgpp/1998/02/07/21:12:51
At 02:03 2/7/1998 +0100, Swipnet wrote:
>Hi.. I have two questions:
>1) Is there any equivalence to the Get/SetVector funtions in DJGPP.. ie
>if I want
> to replace an interrupt, how to I do it??
Depending on what kind of interrupt you want to hook and how, see sections
18.8 through 18.11 of the DJGPP FAQ.
>2) How to I make my own library (.a file) from scratch?..
I think someone answered this already, but compile each source file into its
own object file using the `-c' option to GCC. Then use `ar' to create a
library. Example:
gcc -c foo1.c
gcc -c foo2.c
...
ar qcs libfoo.a foo1.o foo2.o ...
`ar' has many more options; see its docs with those for the rest of the
binutils.
Nate Eldredge
eldredge AT ap DOT net
- Raw text -