| www.delorie.com/djgpp/mail-archives/browse.cgi | search |
| Date: | Fri, 27 Jun 2003 20:18:10 +0300 |
| From: | "Eli Zaretskii" <eliz AT elta DOT co DOT il> |
| Sender: | halo1 AT zahav DOT net DOT il |
| To: | djgpp AT delorie DOT com |
| Message-Id: | <3405-Fri27Jun2003201809+0300-eliz@elta.co.il> |
| X-Mailer: | emacs 21.3.50 (via feedmail 8 I) and Blat ver 1.8.9 |
| In-reply-to: | <bddsop$ro42n$1@ID-79865.news.dfncis.de> (alexvn@bigfoot.com) |
| Subject: | Re: `mmap' undeclared |
| References: | <bddsop$ro42n$1 AT ID-79865 DOT news DOT dfncis DOT de> |
| Reply-To: | djgpp AT delorie DOT com |
| Errors-To: | nobody AT delorie DOT com |
| X-Mailing-List: | djgpp AT delorie DOT com |
| X-Unsubscribes-To: | listserv AT delorie DOT com |
> From: "Alex Vinokur" <alexvn AT bigfoot DOT com> > Newsgroups: comp.os.msdos.djgpp > Date: Thu, 26 Jun 2003 07:28:05 +0300 > > zzz.cpp: In function `void read_file(char*)': > zzz.cpp:17: `mmap' undeclared (first use this function) > zzz.cpp:17: (Each undeclared identifier is reported only once for each function > it appears in.) > zzz.cpp:20: `MAP_FAILED' undeclared (first use this function) > zzz.cpp:23: `munmap' undeclared (first use this function) > > --------- Compilation : END ----------- > > > Note. Cygwin/gcc has no problem with compilation of that code. > =========================================== > Windows 2000 > CYGWIN_NT-5.0 1.3.22(0.78/3/2) > GNU gcc version 3.2 20020927 (prerelease) > =========================================== > > > What is wrong? Nothing. DJGPP simply doesn't support `mmap', and it cannot do so, since the DPMI environment doesn't have a way to control where in the address space do we get allocated memory blocks. Cygwin doesn't work thru DPMI, so it doesn't have that limitation.
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |