Mail Archives: pgcc/2002/03/28/15:02:49
On Thu, 28 Mar 2002, tpg AT umich DOT edu (Terry Gliedt) wrote:
> Date: Thu, 28 Mar 2002 13:33:53 -0500
> To: pgcc AT delorie DOT com
> From: tpg AT umich DOT edu (Terry Gliedt)
> Reply-To: pgcc AT delorie DOT com
> Subject: struct streampos compile error
>
> Note, I am **not** on your mailing list, so please also reply directly to
> me. Thanks
No problem. I sent a CC to the list nevertheless.
> /home/tpg/src/gcc-2.95.2/gcc/xgcc -B/home/tpg/src/gcc-2.95.2/gcc/
> -B/usr/local/pgcc/i686-pc-linux-gnu/bin/ -c -g -O2 -fvtable-thunks
> -D_GNU_SOURCE
> -fno-implicit-templates -I. -I. -nostdinc++ -D_IO_MTSAFE_IO indstream.cc
> indstream.cc: In method `struct streampos indirectbuf::seekoff(long long
> int,
> ios::seek_dir, int = 3)':
> indstream.cc:82: `struct streampos' used where a `int' was expected
> indstream.cc:85: `struct streampos' used where a `int' was expected
> indstream.cc:87: `struct streampos' used where a `int' was expected
> indstream.cc:89: conversion from `int' to non-scalar type `streampos'
> requested
[...]
This is a known icompatibility with gcc 2.95.2 and recent glibc versions.
There is a patch that fixes this issue:
http://gcc.gnu.org/install/glibc-2.2.patch
It can be applied before or after applying the PGCC patch.
- Sebastian
- Raw text -