Mail Archives: djgpp/1996/10/23/00:38:49
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
- Raw text -