Date: Tue, 18 Jun 1996 08:24:40 +0200 (IST) From: Eli Zaretskii To: Michael Ritzert Cc: djgpp AT delorie DOT com Subject: Re: FP_OFF / FP_SEG In-Reply-To: <4pumrr$do2@news00.btx.dtag.de> Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On 15 Jun 1996, Michael Ritzert wrote: > I need to find out the segment and offset of a structure for an interrupt > call using MS-DOS. I tried using FP_OFF and FP_SEG, but I only got > "implicit decleration of function ...". I didn't find any includefile > defining these functions. How can I use them, or are there different ways > to solve this problem? You are jumping right into the deep water before reading the safety regulations, so to speak. Please download the file v2/faq200b.zip from the same place you get DJGPP and read chapter 18 of the DJGPP FAQ list. It explains how to call real-mode interrupts that need pointers to buffers. This is done in a way that is very different from what you are used to under 16-bit real-mode compilers, and you don't need FP_SEG or its simulation to do it. Just read the FAQ and do what it tells you.