Mail Archives: djgpp/2003/06/27/13:21:40
> 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.
- Raw text -