delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/10/22/23:20:58

From: mwallace AT skyler DOT wiltel DOT com
Newsgroups: comp.os.msdos.djgpp
Subject: String class
Date: Tue, 22 Oct 96 07:18:23 CDT
Organization: WilTel
Lines: 25
Message-ID: <NEWTNews.845986957.26592.mwallace@celsius-tul>
NNTP-Posting-Host: celsius-tul.wiltel.com
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019