Re: Linker Error
- From: "Ben Voigt" <rbv@xxxxxxxxxxxxx>
- Date: Mon, 14 May 2007 12:59:20 -0500
"Matrixinline" <anup.kataria@xxxxxxxxx> wrote in message
news:1178604564.088356.123890@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hi ,
Class Utility{
public:
static bool Utility::ReplaceStringBetweenKey(char*);
This is overqualified. You're already inside of Utility, do not put
"Utility::" there.
}
bool Utility::ReplaceStringBetweenKey(char*){
return true;
}
Class MyConfigure{
void Write();
}
void MyConfigure::Write()
{
char* s ;
if(!Utility::ReplaceStringBetweenKey(s){
//ERROR
}
else
{
//Success
}
}
Gives me a error as follows please let me know whats wrong with my
code ...
Utility.lib(MyConfigure.obj) : error LNK2019: unresolved external
symbol "public: static bool __cdecl
Utility::ReplaceStringBetweenKey(char*);
.
- References:
- Linker Error
- From: Matrixinline
- Linker Error
- Prev by Date: Re: Problem with DLL, static LIB and static data
- Next by Date: Question about compiler bug: Value-initialization in new-expression
- Previous by thread: Re: Linker Error
- Next by thread: CryptAcquireContext using MS_ENHANCED_PROV
- Index(es):
Relevant Pages
|