delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/02/07/21:12:51

Date: Sat, 7 Feb 1998 18:12:24 -0800 (PST)
Message-Id: <199802080212.SAA03535@adit.ap.net>
Mime-Version: 1.0
To: "Swipnet" <anders DOT clerwall AT swipnet DOT se>, djgpp AT delorie DOT com
From: Nate Eldredge <eldredge AT ap DOT net>
Subject: Re: Two questions

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 -


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