www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/11/24/03:14:45

Message-Id: <m11qXLS-000HFfC@ripco.com>
From: therapy AT ripco DOT com (Blackbear)
Subject: See inside for more information
To: djgpp AT delorie DOT com
Date: Wed, 24 Nov 1999 02:00:06 -0600 (CST)
Reply-To: djgpp AT delorie DOT com

To: djgpp AT delorie DOT com
Subject: Re: Errors compiling 'rpp.exe'
Newsgroups: comp.os.msdos.djgpp
Organization: Ripco, Chicago's Oldest Online Information Service
X-Newsreader: TIN [version 1.2 PL2]

In article <04333971827781 AT kiwi DOT dep DOT anl DOT gov> you wrote:
: I've been struggling to compile a SystemRPL developer for a HP48 called.
: 'rpp.exe'.  The program compiles cleanly on my Linux OS (Slackware), but for
: obsure reasons I would like to compile under djgpp.  Here's the output:

: 1st problem:
: C:\RPP\SRC>make
: gcc -static -Ic:/rpp/src  -Ic:/djgpp/include/asm  -s -DNDEBUG -O2 -Wall -c
: input.c -o input.o
: input.c: In function `include':
: input.c:171: warning: implicit declaration of function `mmap'
: input.c:171: `MAP_PRIVATE' undeclared (first use this function)
: input.c:171: (Each undeclared identifier is reported only once
: input.c:171: for each function it appears in.)
: input.c:171: warning: assignment makes pointer from integer without a cast
: make.exe: *** [input.o] Error 1

: 2nd problem:
: C:\RPP\SRC>make
: gcc -static -Ic:/rpp/src  -Ic:/djgpp/include/asm  -s -DNDEBUG -O2 -Wall -c
: rplcomp.c -o rplcomp.o
: rplcomp.c: In function `rplcomp':
: rplcomp.c:458: warning: implicit declaration of function `mmap'
: rplcomp.c:458: `MAP_PRIVATE' undeclared (first use this function)
: rplcomp.c:458: (Each undeclared identifier is reported only once
: rplcomp.c:458: for each function it appears in.)
: rplcomp.c:458: warning: assignment makes pointer from integer without a cast
: rplcomp.c:464: warning: implicit declaration of function `munmap'
: rplcomp.c:253: warning: `len' might be used uninitialized in this function
: make.exe: *** [rplcomp.o] Error 1

: I seem to be missing library functions, and being a gcc beginner I need some
: guidance.  Here's hoping someone can offer a hand up.  Thanks much.

: Go Well - Bob Peterson

: Hard: 486/133, 32 Mb


: .

: Robert S. Peterson
: Great Lakes Compass
: 31 N Alfred, Elgin IL  60123  USA
: 847/697-6491
: Compass Adjusting & Repair for Lake Michigan Navigators Since 1985
: Navigation classes at the Adler Planetarium
: e-mail: rpeterson AT kiwi DOT dep DOT anl DOT gov

mmap() and munmap() are posix functions. Since DJGPP
doesn't include all of posix (because DOS doesn't have
the basic functionality) you probably won't find it
easy to port this program using DJGPP. 

Use Cygwin instead. Cygwin emulates posix in a Win32
environment. Goto Cygnus software's web page:

        http://sourceware.cygnus.com/cygwin

--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019