Mail Archives: djgpp/2000/06/22/16:04:30
| Message-ID: | <395259B9.C01633CC@hotmail.com>
|
| From: | Heavy <heavier AT hotmail DOT com>
|
| X-Mailer: | Mozilla 4.6 [en]C-SYMPA (Win98; U)
|
| X-Accept-Language: | en,fr-CA
|
| MIME-Version: | 1.0
|
| Newsgroups: | comp.os.msdos.djgpp
|
| Subject: | Re: Problems with String class
|
| References: | <39525336 DOT ED6CC8C5 AT hotmail DOT com>
|
| Lines: | 23
|
| Date: | Thu, 22 Jun 2000 18:30:22 GMT
|
| NNTP-Posting-Host: | 64.228.11.77
|
| X-Trace: | news20.bellglobal.com 961698622 64.228.11.77 (Thu, 22 Jun 2000 14:30:22 EDT)
|
| NNTP-Posting-Date: | Thu, 22 Jun 2000 14:30:22 EDT
|
| Organization: | Sympatico
|
| To: | djgpp AT delorie DOT com
|
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
| Reply-To: | djgpp AT delorie DOT com
|
My apologies, I just found the solution in the FAQ...
Let this be a lesson to all of us: Check the FAQ first :)
Heavy wrote:
>
> Hi, I'm having a problem using the c++ string library, specifically, the
> String class in _string.h. When I compile my code (with _string.h
> #included) it seems to compile fine until the link stage, when I get
> about a million "undefined reference to String::someMethod".
>
> I have been compiling properly (I think) because all other c++ stuff
> seems to link fine (i.e. iostream.h, fstream.h, etc) but for some
> reason, the linker can't find the String implemenation. I am using
> gxx.exe, so I don't think that's the problem, is there some specific
> library I need to link with my program? Or is there no implementation at
> all for the String class? Or is there some other problem I'm overlooking
> entirely...
>
> Thanks for any help you can give me,
>
> Heavy
> heavier AT hotmail DOT com
- Raw text -