www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/05/20/10:45:15

From: Jason Green <news AT jgreen4 DOT fsnet DOT co DOT uk>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: void, again
Date: Sat, 20 May 2000 15:34:54 +0100
Organization: Customer of Planet Online
Lines: 42
Message-ID: <ij7dis4nqn5ps8460gb1nv1nk4l37cheol@4ax.com>
References: <8g5p4k$9tp$1 AT news DOT netvision DOT net DOT il>
NNTP-Posting-Host: modem-167.xenon.dialup.pol.co.uk
Mime-Version: 1.0
X-Trace: newsg4.svr.pol.co.uk 958833380 7239 62.136.45.167 (20 May 2000 14:36:20 GMT)
NNTP-Posting-Date: 20 May 2000 14:36:20 GMT
X-Complaints-To: abuse AT theplanet DOT net
X-Newsreader: Forte Agent 1.7/32.534
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

"Avi Berkovich" <berkovic AT netvision DOT net DOT il> wrote:

> Hello again
> 
> I tryed to compile using the makefile attached (for the DLX facility), so I
> don't understand why I get the "ANSI C++ forbids the use of pointer type
> void * in arithmatic" error message.

Please paste files into the message rather than attaching them.

---------------------------------------------------------------
all : dlxgen.exe libdlx.a
dlxgen.exe : dlxgen.cpp dlx.h
	gcc -s -O -o dlxgen.exe dlxgen.cpp -liostream
	copy dlxgen.exe ..\..\bin
dlxload.o : dlxload.cpp dlx.h
	gcc -c dlxload.cpp
libdlx.a : dlxload.o
	ar crs libdlx.a dlxload.o
	copy libdlx.a ..\..\lib
	copy dlx.ld ..\..\lib
dlxlist.exe : dlxlist.cpp
	gcc -s -O -o dlxlist.exe dlxlist.cpp -liostream
vergen.exe : vergen.cpp
	gcc -s -O -o vergen.exe vergen.cpp
---------------------------------------------------------------

The problem may be that the package was written for an older version
of gcc that issues warnings for void pointer arithmetic, whereas gcc
2.95 issues errors.  So originally the build process would generate
warnings but would complete, but now with stricter version of gcc it
aborts with errors.

Check to see that there is not a later version of dlx that fixes these
problems.  If you have the latest version, and you do not fancy fixing
the source yourself, you could add -fpermissive to the compile
commands.  This will downgrade the errors to warnings so it should let
through the non-standard code.

There is another possible problem in though.  I am not sure that
libiostream exists in DJGPP (someone will correct me if I am wrong).
You may have to modify the makefile to use libstdcxx or libgpp.

- Raw text -


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