Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Daryll Strauss <daryll@d2.com>
Subject: libg++ mismatch in Red Hat 4.0
Date: Fri, 13 Dec 1996 15:09:31 -0800 (PST)	[thread overview]
Message-ID: <199612132309.PAA05744@jolt.d2.com> (raw)

So, I'm trying to compile some C++ code under Red Hat 4.0, and the
streams library doesn't seem to match libio.h. Here's a simple example
program: 

#include <stream.h>

int main(int argc, char *argv[]) {
        cerr << "Hello World\n";
}

This won't compile under 4.0 and gives the following messages:

/usr/include/g++/streambuf.h: In method `long int
streambuf::pubseekoff(long int, enum ios::seek_dir, int = 3)':
In file included from /usr/include/g++/iostream.h:31,
                 from /usr/include/g++/stream.h:31,
                 from /usr/tmp/foo.C:2:
/usr/include/g++/streambuf.h:351: warning: implicit declaration of
function `int _IO_seekoff(...)'
/usr/include/g++/streambuf.h: In method `long int
streambuf::pubseekpos(long int, int = 3)':
/usr/include/g++/streambuf.h:353: warning: implicit declaration of
function `int _IO_seekpos(...)'
/usr/include/g++/streambuf.h: In method `int streambuf::sputc(int)':
/usr/include/g++/streambuf.h:384: warning: implicit declaration of
function `int _IO_putc(...)'
/usr/include/g++/streambuf.h: In method `int streambuf::sbumpc()':
/usr/include/g++/streambuf.h:385: warning: implicit declaration of
function `int _IO_getc(...)'
/usr/include/g++/streambuf.h: In method `int streambuf::sgetc()':
/usr/include/g++/streambuf.h:386: warning: implicit declaration of
function `int _IO_peekc(...)'
/tmp/cca069981.o: In function `main':
foo.C(.text+0x28): undefined reference to `cerr'
foo.C(.text+0x30): undefined reference to `ostream::operator<<(char
const *)'
foo.C(.text+0x34): undefined reference to `ostream::operator<<(char
const *)'

It appears that libio has functions for threading, but libg++ is
expecting an older version.

Red Hat?

							- |Daryll

--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com

                 reply	other threads:[~1996-12-13 23:09 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox