[ns] a probelm when compiling

Zhikui Wang zkwang@seas.ucla.edu
Wed Apr 24 15:20:02 2002


Hi, I have when compling a new .cc file as following, did anybody ever
meet with it?

c++ ...... fast.cc
In file included from /usr/include/g++-3/iostream.h: 32, from
tcp/fast.cc:51:

/usr/include/g++-3/streambuf.h: In method 'streampos streambuf::pubseekoff
(long long int, ios::seek_dir, int)":
/usr/include/g++-3/streambuf.h: 362: conversion from '__off64_t' to
non-scalar type 'streampos' requested
/usr/include/g++-3/streambuf.h: In method 'streampos streambuf::pubseekpos
(_G_fpos64_t, int)':
/usr/include/g++-3/streambuf.h: 364: cannot convert 'streampos' to 'long
long int' for argument '2' to '_IO_seekpos (_IO_FILE *, long long int,
int)'

make: *** [tcp/fast.o] Error 1.

Actually, when I first instaled NS, there was another similar problems
as following, and I used gcc 2.95.3. Somebody told me that it was caused
by the lower version of gcc. Now I had gcc 2.96 installed. Problem still
exists. Do you have any idea? Or is there any special configuration of
gcc?

BTW: linux redhat 7.0.

thanks,

zhikui

> c++ ..... /src_rtg/classifier-sr.o src_rtg/classifier-sr.cc
> In file included from
> /usr/lib/gcc-lib/i386-redhat-linux/2.95.3/../../../../include/g++-3/iostream.h:31,
> from src_rtg/classifier-sr.cc:38:
> /usr/lib/gcc-lib/i386-redhat-linux/2.95.3/../../../../include/g++-3/streambuf.h:
>  In method 'struct streampos streambuf::pubseekoff(long long int,
> ios::seek_dir, int=3)':
> ....../streambuf.h:362: conversion from '__off64_t' to non-scalar type
> 'streampos' requested
> ....../streambuf.h: In method 'struct streampos
> streambuf::pubseekpos(_G_fpos64_t,int=3)':
> ....../streambuf.h: 364 'struct streampos' used where a 'long long int'
> was expected
> make: ***[src_rtg/calssifier-sr.0] Error 1
>