home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!cs.utexas.edu!qt.cs.utexas.edu!yale.edu!yale!gumby!destroyer!ncar!noao!arizona!naucse!jdc
- From: jdc@naucse.cse.nau.edu (John Campbell)
- Newsgroups: comp.lang.c++
- Subject: SunOS conflicts with g++
- Keywords: size_t, ptrdiff_t, flock
- Message-ID: <5421@naucse.cse.nau.edu>
- Date: 17 Aug 92 23:06:07 GMT
- Organization: Northern Arizona University, Flagstaff AZ
- Lines: 35
-
-
- Help,
-
- I'm using g++ on a Sparc (SunOS 4.1.2) and find myself with three
- compile errors that I wonder about fixing:
- 1) conflicting types for `size_t':
- 2) conflicting types for `ptrdiff_t'
- 3) warning: `flock' was declared `extern' and later `static'
-
- It appears each of these is a conflict between files in g++-include and
- /usr/include/sys:
-
- 1) conflicting types for `size_t':
- /usr/include/sys/stdtypes.h:typedef int size_t;
- /usr/local/lib/g++-include/stddef.h:typedef unsigned long size_t;
-
- 2) conflicting types for `ptrdiff_t'
- /usr/include/sys/stdtypes.h:typedef int ptrdiff_t;
- /usr/local/lib/g++-include/stddef.h:typedef long int ptrdiff_t;
-
- 3) warning: `flock' was declared `extern' and later `static'
- /usr/include/sys/fcntlcom.h:struct flock {
- /usr/local/lib/g++-include/std.h:int flock(int, int);
-
- Anyone have an "expert" opinion about what to do with these? (I
- assume I want to change the g++-include files, but wonder if that's
- really safe?) War stories? Gotcha's I might find further down the
- line as I mix g++ with SunOS 4.1.2?
-
- Also, I wouldn't expect this particular question to be in the
- FAQ, but I'm new to this group. Would someone tell me where the
- FAQ is kept?
- --
- John Campbell jdc@naucse.cse.nau.edu
- JDC@NAUVAX.UCC.NAU.EDU
-