Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Managed C++ / March 2006

Tip: Looking for answers? Try searching our database.

Unresolved External

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Michael Primeaux - 29 Mar 2006 18:18 GMT
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

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.