From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <199612132309.PAA05744@jolt.d2.com> Date: Fri, 13 Dec 1996 15:09:31 -0800 (PST) From: Daryll Strauss Subject: libg++ mismatch in Red Hat 4.0 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 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