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: 14 Apr 2004 20:00:29 -0700 Organization: http://groups.google.com Lines: 11 Message-ID: <84e4e2a9.0404141900.6c91e977@posting.google.com> References: <84e4e2a9 DOT 0404140726 DOT 77691a0d AT posting DOT google DOT com> NNTP-Posting-Host: 172.200.9.103 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1081998030 11946 127.0.0.1 (15 Apr 2004 03:00:30 GMT) X-Complaints-To: groups-abuse AT google DOT com NNTP-Posting-Date: Thu, 15 Apr 2004 03:00:30 +0000 (UTC) To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com > 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" ?