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
Michael Primeaux - 29 Mar 2006 18:29 GMT
Incidentally, for this particular ISAPI filter, I'm using .NET 1.1 and not
2.0.
> I'm writing an ISAPI DLL [unmanage code] that calls into managed C++ code
> (same DLL). I'm receiving the following link errors:
[quoted text clipped - 9 lines]
> Thanks,
> Michael
Michael Primeaux - 29 Mar 2006 19:12 GMT
Additionally, I have followed the steps in
http://support.microsoft.com/?id=814472 to no avail.
> I'm writing an ISAPI DLL [unmanage code] that calls into managed C++ code
> (same DLL). I'm receiving the following link errors:
[quoted text clipped - 9 lines]
> Thanks,
> Michael
Michael Primeaux - 29 Mar 2006 19:54 GMT
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
> I'm writing an ISAPI DLL [unmanage code] that calls into managed C++ code
> (same DLL). I'm receiving the following link errors:
[quoted text clipped - 9 lines]
> Thanks,
> Michael