[Insight-users] gcc-2.95.2 compile error?

Feng Ma mafeng at hotmail . com
Mon, 29 Sep 2003 20:11:19 -0400


Hi,

  I am linking ITK together with some legacy code which was compiled with 
gcc-2.95.2. When I tried to compile ITK with gcc-2.95.2, I got the following 
error:

/r2net/r2/fma/ITK2.95.2/Utilities/MetaIO: building default_target
Building object file metaBlob.o...
In file included from 
/opt/gcc-2.95.2/lib/gcc-lib/i686-pc-linux-gnu/2.95.2/../../../../include/g++-3/iostream.h:31,
                 from 
/opt/gcc-2.95.2/lib/gcc-lib/i686-pc-linux-gnu/2.95.2/../../../../include/g++-3/iostream:6,
                 from 
/r2net/space_fma2/Devel/InsightToolkit-1.4.0/Utilities/MetaIO/metaBlob.cxx:3:
/opt/gcc-2.95.2/lib/gcc-lib/i686-pc-linux-gnu/2.95.2/../../../../include/g++-3/streambuf.h: 
In method `struct streampos streambuf::pubseekoff(long long int, 
ios::seek_dir, int = 3)':
/opt/gcc-2.95.2/lib/gcc-lib/i686-pc-linux-gnu/2.95.2/../../../../include/g++-3/streambuf.h:362: 
conversion from `__off64_t' to non-scalar type `streampos' requested
/opt/gcc-2.95.2/lib/gcc-lib/i686-pc-linux-gnu/2.95.2/../../../../include/g++-3/streambuf.h: 
In method `struct streampos streambuf::pubseekpos(_G_fpos64_t, int = 3)':
/opt/gcc-2.95.2/lib/gcc-lib/i686-pc-linux-gnu/2.95.2/../../../../include/g++-3/streambuf.h:364: 
`struct streampos' used where a `long long int' was expected
make[5]: *** [metaBlob.o] Error 1


  I am wondering if anyone encountered similiar problem before. I did the 
search on mailist and didn't find  answers.

  The other question is: could I link gcc-3.3.1 compiled ITK libraries with 
other libraries compiled using gcc-2.95.2?

  Thanks a lot.

-Feng

_________________________________________________________________
Get MSN 8 Dial-up Internet Service FREE for one month.  Limited time offer-- 
sign up now!   http://join . msn . com/?page=dept/dialup