From: edkiser AT jaxnet DOT com (M. Edward Kiser) Newsgroups: comp.os.msdos.djgpp Subject: Re: String class Date: Wed, 23 Oct 1996 01:42:02 GMT Organization: Southeast Network Services, Inc. Lines: 34 Message-ID: <54jsns$dlh@ns2.southeast.net> References: Reply-To: edkiser AT jaxnet DOT com NNTP-Posting-Host: ts4-022.southeast.net To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp mwallace AT skyler DOT wiltel DOT com wrote: >I need help with the String class. I didn't see anything >in the FAQs but I might have missed it. >When I compile my program, it compiles okay. Then when it >links, I get an error message something like: >error in void Foo(char* const string) >undefined symbol String::String(char* const string); >However, the prototype & definition I declared for Foo() >was: >void Foo(const char* string); >And I call Foo() this way: >Foo("Test"); >Can someone tell me what I'm doing wrong? >Thanks. >Mike Are you linking with -lstdcxx ? Is your libstdcx.a file present and up-to-date? If it is, I don't know what's wrong... -------- Ed Kiser (edkiser AT jaxnet DOT com) "The great epochs of our lives are at the points where we rebaptize our badness as the best in us." -- Nietzsche