I do have this RPM. I also have 'string' in the path you mentioned and also in /usr/include/g++-3/string. If I don't explicitly specify the path to it then string is not even recognized by the compiler (undeclared identifier message). Also, I have to use -I/usr/include/g++-3, trying to use I/usr/include/c++/3.2.2 didn't work. In any case when the include problems are solved I still remain with the link problems. Any other suggestions? -----Original Message----- From: redhat-list-admin@xxxxxxxxxx [mailto:redhat-list-admin@xxxxxxxxxx] On Behalf Of Matthew Saltzman Sent: Friday, December 05, 2003 5:26 PM To: redhat-list@xxxxxxxxxx Subject: Re: linking to stl on RedHat 9.0 On Fri, 5 Dec 2003, Sherman, Yuval wrote: > Hi all, > > > > This should be an easy one. I've recently upgraded from RedHat 7.2 to > 9.0 (I'd choose the workstation installation). I'm trying to make the > most simple main program which uses 'string' (it has #include <string> > in it) but it seems that I can't find the library I should link with. > Can someone send me the compile line I should use? > > (I've tried: g++ -I/usr/include/g++-3 -lstdc++ -o test test.cxx) > > > > Thanks, Yuval Do you have the libstdc++-devel RPM installed? The path to the string header file is /usr/include/c++/3.2.2/string in RH9, but that should be included automatically if you use g++. -- Matthew Saltzman Clemson University Math Sciences mjs AT clemson DOT edu http://www.math.clemson.edu/~mjs -- redhat-list mailing list unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe https://www.redhat.com/mailman/listinfo/redhat-list -- redhat-list mailing list unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe https://www.redhat.com/mailman/listinfo/redhat-list