strange c++ compile errors

Mike Coleman mkc at mathdogs.com
Wed May 16 07:01:15 CDT 2001


crash3m <crash3m at crosswinds.net> writes:
> During the 3rd meeting Hal brought up my problem with a little c++
> program. 
> 
> #include <iostream.h>
> 
> int main()
> {
> 	cout << "Welcome to GNU C++ for Linux Programming!" << endl;
> 	return 0;
> }
> 
> when compiled using 'c++ welcome.cpp' I get
> 
> /usr/include/g++-2/streambuf.h: In method 'struct streampos
> streambuf::pubseekoff(streamoff, enum _seek_dir, int = 3)': 
> In file included from /usr/include/g++-2/streambuf.h:362 conversion from
> '__off64_t' to non-scalar type 'streampos' requested
> /usr/include/g++-2/streambuf.h:364: 'struct streampos' used where a
> '__off64_t' was expected

My guess would be maybe an invalid combination of headers (e.g., from two
conflicting versions of gcc, or something).

-- 
Mike Coleman, mkc at mathdogs.com
  http://www.mathdogs.com -- problem solving, expert software development




More information about the Kclug mailing list