| delorie.com/archives/browse.cgi | search |
| From: | dontmailme AT iname DOT com (Steamer) |
| Newsgroups: | comp.os.msdos.djgpp |
| Subject: | Re: compare() |
| Date: | Tue, 31 Oct 2000 11:12:50 GMT |
| Organization: | always disorganized |
| Lines: | 13 |
| Message-ID: | <39fea8f5.9349153@news.freeserve.net> |
| References: | <1F7509A3BB20243A DOT 7FD3AC2DC483DD04 DOT 6BB6DE9721314E90 AT lp DOT airnews DOT net> |
| NNTP-Posting-Host: | modem-145.virginia.dialup.pol.co.uk |
| X-Trace: | news6.svr.pol.co.uk 972990771 9135 62.137.97.145 (31 Oct 2000 11:12:51 GMT) |
| NNTP-Posting-Date: | 31 Oct 2000 11:12:51 GMT |
| X-Complaints-To: | abuse AT theplanet DOT net |
| X-Newsreader: | Forte Free Agent 1.11/32.235 |
| To: | djgpp AT delorie DOT com |
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
| Reply-To: | djgpp AT delorie DOT com |
Rodeo Red wrote: > On my djgpp compiler I get the error messages below, and I thought it > might be a compiler specific glitch. Does anyone know why this does not > compile ? It compares the last three letters of the word with a string. The compare() member functions for std::string in GCC's C++ library are non-standard. This should be fixed in GCC 3.0, which is due out by the end of the year. STLport (http://www.stlport.org) would also solve the problem - if you can get it to work with DJGPP. The code that Stan Moore posted obviously won't work with most C++ compilers.
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |