X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f From: jbs30000 AT aol DOT com (Joel) Newsgroups: comp.os.msdos.djgpp Subject: Re: Strange error message Date: 16 Apr 2004 11:37:13 -0700 Organization: http://groups.google.com Lines: 19 Message-ID: <84e4e2a9.0404161037.1b4472a1@posting.google.com> References: <84e4e2a9 DOT 0404140726 DOT 77691a0d AT posting DOT google DOT com> <84e4e2a9 DOT 0404141900 DOT 6c91e977 AT posting DOT google DOT com> <881s7095ggj9m6p170sl1b7o70l0kppq01 AT 4ax DOT com> NNTP-Posting-Host: 172.209.199.156 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1082140633 6620 127.0.0.1 (16 Apr 2004 18:37:13 GMT) X-Complaints-To: groups-abuse AT google DOT com NNTP-Posting-Date: Fri, 16 Apr 2004 18:37:13 +0000 (UTC) To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Brian Inglis wrote in message news:<881s7095ggj9m6p170sl1b7o70l0kppq01 AT 4ax DOT com>... > On 14 Apr 2004 20:00:29 -0700 in comp.os.msdos.djgpp, jbs30000 AT aol DOT com > (Joel) wrote: > > >> The example in libc.info node > >> _go32_dpmi_allocate_real_mode_callback_iret is incorrect, as you need > >> to cast your function pointer to the unsigned long pm_offset: > >> > >> info.pm_offset = (unsigned long)my_handler; > >> > >> and the -ansi compiler option is out! > > > >Thanks, yeah, I wondered about casting after posting this message, and > >sure enough, that's what it is. Oh, and what do you mean by "the > >-ansi compiler option is out" ? > > The (non-standard) header contents are skipped if -ansi is specified. Got it, thanks.