[ns] a probelm when compiling
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
/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
/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,
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
BTW: linux redhat 7.0.
> c++ ..... /src_rtg/classifier-sr.o src_rtg/classifier-sr.cc
> In file included from
> from src_rtg/classifier-sr.cc:38:
> 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.h: 364 'struct streampos' used where a 'long long int'
> was expected
> make: ***[src_rtg/calssifier-sr.0] Error 1