From: Jason Green 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: 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 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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" 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.