Unresolved External

  • Thread starter Thread starter Michael Primeaux
  • Start date Start date
M

Michael Primeaux

I'm writing an ISAPI DLL [unmanage code] that calls into managed C++ code
(same DLL). I'm receiving the following link errors:

EditResponse.obj : error LNK2001: unresolved external symbol "int __cdecl
stricmp(char const *,char const *)" (?stricmp@@$$J0YAHPBD0@Z)
EditResponse.obj : error LNK2001: unresolved external symbol "int __cdecl
strnicmp(char const *,char const *,unsigned int)"
(?strnicmp@@$$J0YAHPBD0I@Z)

I'm linking against the mscoree.lib and libcmt.lib. Any ideas?

Thanks,
Michael
 
Incidentally, for this particular ISAPI filter, I'm using .NET 1.1 and not
2.0.
 
It seems the standard CTL libraries define an underscore as a prefix for the
two functions below. The solution was to use a #define:

#ifndef strnicmp
#define strnicmp _strnicmp
#define stricmp _stricmp
#endif

Thanks,
Michael
 
Back
Top