bug-glibc
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

c++ programs want compile with glibc 2.2.1


From: Ra
Subject: c++ programs want compile with glibc 2.2.1
Date: Sun, 11 Feb 2001 13:57:19 +0200

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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]