This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: iomanip problem


I installed libstdc++.so.2.9.  Actually I updated my copy of egcs by CVS and
rebuilt the whole stuff.  But the same problem persists.  Any advice?

Thanks.

>>>>> "Carlo" == Carlo Wood <carlo@runaway.xs4all.nl> writes:

Carlo> You link not or with the wrong libstdc++.  This template is defined in
Carlo> libstdc++.so.2.9.

>> nm -C /usr/local/egcs-cvs/lib/libstdc++.so.2.9 | grep 'ostream.*smanip<int>'
Carlo> 00023854 T ostream & operator<<<int>(ostream &, smanip<int> const &)

Carlo> If you are using egcs-1.0.x, then the lib is still called
Carlo> libstdc++.so.2.8, make sure to use the right lib :/

Carlo> -- Carlo Wood <carlo@runaway.xs4all.nl>

Carlo> | Hi there: | | I am trying to use some functions in the iomanip.h wigh
Carlo> egcs.  The compile of | the program seems to be ok.  But the linking
Carlo> stage produces error messages like | the following one: | |
Carlo> xxx.o:xxx.hpp:line number:undefined reference to `operator<<(ostream &, |
Carlo> smanip<int> const &)' | | The undefined reference is setw().  | | Anybody
Carlo> has any hints?  | | Thanks.  | | -- | | Xiaomao | |
Carlo> ================================================================= |
Carlo> Xiaomao (Mark) Xiao E-Mail: xiao@cmold.com | C-MOLD TEL: (607) 257-4949 x
Carlo> 699 | 31 Dutch Mill Road FAX: (607) 257-6355 | Ithaca, NY 14850 URL:
Carlo> http://www.cmold.com |
Carlo> =================================================================



-- 

Xiaomao

=================================================================
Xiaomao (Mark) Xiao                  E-Mail: xiao@cmold.com
C-MOLD                                  TEL: (607) 257-4949 x 699
31 Dutch Mill Road                      FAX: (607) 257-6355
Ithaca, NY 14850                        URL: http://www.cmold.com
=================================================================


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]