This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

c++ programs want compile with glibc 2.2.1


h!

i've compiled and installed glibc 2.2.1 (default flags) with gcc 2.95.2
linked
statically against 2.1.3 library. c programs will compile fine but it's
not the
same for c++ code, i'm getting errors regarding c++ compiler headers:
ie:
--------------
#include <iostream.h>

int
main()
 {
    return 0;
 }
--------------

and compile the above (g++ -c -o obj.o code.c) i get:
----------
In file included from /usr/include/g++/iostream.h:31,
                 from code.cpp:1:
/usr/include/g++/streambuf.h: In method `struct streampos
streambuf::pubseekoff(long long int, ios::seek_dir, int = 3)':
/usr/include/g++/streambuf.h:362: conversion from `__off64_t' to
non-scalar type `streampos' requested
/usr/include/g++/streambuf.h: In method `struct streampos
streambuf::pubseekpos(_G_fpos64_t, int = 3)':
/usr/include/g++/streambuf.h:364: `struct streampos' used where a `long
long int' was expected
----------

any help?
    Nicholas



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]