From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <199701241725.MAA29362@ tikva> Date: Fri, 24 Jan 1997 12:25:36 -0500 (EST) From: Daniel Gruner Subject: g++ warnings and problems Hi I have been troubled by messages like: In file included from /usr/include/g++/iostream.h:31, from TypeInfo.h:36, from Delay.h:39, from SourceView.C:71: /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(...)' although my programs seem to work fine. However, today I have been trying to compile "ddd", and I get the following from the linker: strclass.o: In function `operator>>(istream &, string &)': /usr/include/g++/streambuf.h:385: undefined reference to `_IO_getc' /usr/include/g++/streambuf.h:385: undefined reference to `_IO_getc' strclass.o: In function `readline(istream &, string &, char, int)': /usr/include/g++/streambuf.h:385: undefined reference to `_IO_getc' /usr/include/g++/streambuf.h:385: undefined reference to `_IO_getc' show.o: In function `show_resources(_XrmHashBucketRec *)': /usr/include/g++/streambuf.h:385: undefined reference to `_IO_getc' show.o:/usr/include/g++/streambuf.h:385: more undefined references to `_IO_getc' follow show.o: In function `show_resources(_XrmHashBucketRec *)': /usr/include/g++/streambuf.h:384: undefined reference to `_IO_putc' /usr/include/g++/streambuf.h:384: undefined reference to `_IO_putc' make[1]: *** [ddd-2.0-alpha-unknown-linux] Error 1 I have been searching for definitions of the "missing functions" (first set of warning messages above) to no avail. Are they missing due to an oversight? Also, and more to the point, I don't see any references to functions called "_IO_putc" or "_IO_getc" in the system libraries either... I am running RedHat 4.0, kernel 2.0.27. Does anybody know what the problem is, and if so whether there are patches for this? Thanks, Daniel -- Dr. Daniel Gruner dgruner@tikva.chem.utoronto.ca Dept. of Chemistry phone: (416)-978-8689 University of Toronto fax: (416)-978-5325 -- 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