473,320 Members | 1,951 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Unresolved External

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
Mar 29 '06 #1
3 2048
Incidentally, for this particular ISAPI filter, I'm using .NET 1.1 and not
2.0.

"Michael Primeaux" <mj********@nospam.msn.com> wrote in message
news:ug**************@TK2MSFTNGP14.phx.gbl...
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

Mar 29 '06 #2
Additionally, I have followed the steps in
http://support.microsoft.com/?id=814472 to no avail.
"Michael Primeaux" <mj********@nospam.msn.com> wrote in message
news:ug**************@TK2MSFTNGP14.phx.gbl...
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

Mar 29 '06 #3
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

"Michael Primeaux" <mj********@nospam.msn.com> wrote in message
news:ug**************@TK2MSFTNGP14.phx.gbl...
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

Mar 29 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Rodolphe | last post by:
Hello, I'm French so sorry for my approximate English. When I try to compile a project under Visual C++ 6.0, I've got the following errors : applicap.obj : error LNK2001: unresolved external...
0
by: Ida | last post by:
Hi, I am trying to build an dll with Microsoft Visual C++ but during the linking phase I get linking errors. Script.obj : error LNK2019: unresolved external symbol __imp__PyString_AsString...
1
by: Aravind | last post by:
we have two files: 1. rc4.c (defines one function "create_pin()") 2. MyImpl.c(calling the function "create_pin()"),This implements JNI method. 1.When I am trying to create .dll file with one...
5
by: cschettle | last post by:
I think you need to link with msvcrt.lib ----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==---- http://www.newsfeed.com The #1 Newsgroup Service in the World! >100,000...
2
by: f rom | last post by:
----- Forwarded Message ---- From: Josiah Carlson <jcarlson@uci.edu> To: f rom <etaoinbe@yahoo.com>; wxpython-users@lists.wxwidgets.org Sent: Monday, December 4, 2006 10:03:28 PM Subject: Re: ...
2
by: Maydogg6 | last post by:
I need a hand with some stubborn link errors. I'm trying to recreate and old program from 6.0 into .NET, but for some reason when I try to compile I'm getting linking errors for all my function...
6
by: sadegh | last post by:
Hi I have a problem with my program in VC++6 When I compile it, the following errors are listed. I spend a lot of time on the groups.google.com to find its reason, but none of comments could...
5
by: bonnielym84 | last post by:
Im new here..didnt noe whether is this the rite way to post my problem..Really need help here..i've been stucked in this error from last wk..My problem is like this..Im using VC++ 6.0 to compile my C...
0
by: Ryan Gaffuri | last post by:
hlink72@hotmail.com (Eric) wrote in message news:<ab8d8b14.0308220550.54fb5f22@posting.google.com>... LNK1120 is a standard C++ error. you using Visual C++? Means your references a class that...
2
by: =?Utf-8?B?YmFzaA==?= | last post by:
Hello, I am compiling a CPP code using Visual studion .net 2003. I get the following error, despite having windldap.h and wldap32.dll in my include and lib paths. Here is the error. uuid.lib...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.