Answered by:
unresolved external symbol _strncasecmp.

-
Hi,all, this is a green hand.
I'm compiling something in vc++6.0.
I should say that the source codes are written for gcc, I just wanna edit it so that it can run in vc++6.0. The progress can run well in linux, and my OS is windows.
Now the compiling progress is OK, but I met problems like this in the linking progress:
rdseed.obj : error LNK2001: unresolved external symbol _strncasecmp.
is there anyone who can tell me how to deal with this? Thanks.
Question
Answers
-
And instead of using Linux Function Simply try Windows API .Have a look on the following link to undestand the things in detail.
Linker Tools Error LNK2001
Thanx
All replies
-
And instead of using Linux Function Simply try Windows API .Have a look on the following link to undestand the things in detail.
Linker Tools Error LNK2001
Thanx -
-
-
"And instead of using Linux Function Simply try Windows API"
Silly him, Having the odacity to try to use obscure International Standard, like Posix. What next a C99-compliant compiler ?
@echoooo: Create a header to hide windows ugliness. something like winshit.h:
#ifndef WINSHIT_INCLUDED
#define WINSHIT_INCLUDED
#if defined(WIN32) || defined(WIN64)
#define strcasecmp _stricmp
#endif /* Def WIN32 or Def WIN64 */
#endif /* Ndef WINSHIT_INCLUDED */
Over time you will put there many wrapper and inline funciton to hide the big intentional mess created by Redmont.
-