🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.g++.help
Article #71

incompatible types

#71
From: Rex Jakobovits
Date: Fri, 31 Jul 1992 21:58
29 lines
1208 bytes
Hi,

  I've been running into some problems while trying to compile g++
programs on a sparc.  My program includes the file:

	/usr/local/lib/g++-include/unistd.h

which eventually includes definitions from

	/usr/include/sys/stdtypes.h
and
	/usr/local/lib/g++-include/stddef.h

These system files both declare 'ptrdiff_t', but one as an int and one
as a long int.  Thus a fatal error occurs.

It is important for our project that I find out what's wrong as soon
as possible (i.e. am I compiling with the wrong include paths?), and
any advice (or at least a pointer to advice) would be greatly
appreciated.

  --rex



-- 
	Rex Jakobovits (rex@cs.washington.edu)
	Dept. of Computer Science
	University of Washington
Technical Details
Message-ID: <1992Jul31.215846.20515@beaver.cs.washington.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!elroy.jpl.nasa.gov!usc!rpi!usenet.coe.montana.edu!news.u.washington.edu!uw-beaver!rex

Show Full Headers
Complete Article Headers
Newsgroups: gnu.g++.help,gnu.gcc.help
Path: arc1-ca.pugleaf.net!sparky!uunet!elroy.jpl.nasa.gov!usc!rpi!usenet.coe.montana.edu!news.u.washington.edu!uw-beaver!rex
From: rex@cs.washington.edu (Rex Jakobovits)
Subject: incompatible types
Message-ID: <1992Jul31.215846.20515@beaver.cs.washington.edu>
Sender: news@beaver.cs.washington.edu (USENET News System)
Organization: Computer Science & Engineering, U. of Washington, Seattle
Date: Fri, 31 Jul 92 21:58:46 GMT
Lines: 29