Unresolved External

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
 
M

Michael Primeaux

Incidentally, for this particular ISAPI filter, I'm using .NET 1.1 and not
2.0.
 
M

Michael Primeaux

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top