* libg++ mismatch in Red Hat 4.0
@ 1996-12-13 23:09 Daryll Strauss
0 siblings, 0 replies; only message in thread
From: Daryll Strauss @ 1996-12-13 23:09 UTC (permalink / 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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1996-12-13 23:09 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-12-13 23:09 libg++ mismatch in Red Hat 4.0 Daryll Strauss
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox