1、 Problem description.
The C/C + + program compiles normally in Linux, and an error is reported in Windows: error c3861: “strcasecmp”: Identifier not found.
2、 Problem analysis.
There is no library function related to strcasecmp in windows.
3、 Solutions.
Declare the library function of strcasecmp under windows.
#ifdef _WIN32
//#define strcasecmp _stricmp
//#define strncasecmp _strnicmp
#endif
#ifdef _MSC_VER
#define strcasecmp _stricmp
#define strncasecmp _strnicmp
#endif
Read More:
- Error c3861: identifier not found | identifier not found
- Successfully resolved error c3861: ‘printf’: identifier not found
- Error c2061: syntax error: identifier ‘this_ FILE’
- Xcode Error: Embedded binary’s bundle identifier is not prefixed with the parent app’s bundle identifier
- Error c2065: ‘new’: undeclared identifier, mainly because it is a. C file
- error C2065: “_ LPW “: undeclared identifier
- To solve the running error of eclipse for C / C + +: launch failed binary not found
- error C2065: ‘_beginthread‘ : undeclared identifier
- Error C2065 ‘cout’: undeclared identifier
- winnt.h C2146 error C2146: syntax error : missing ‘;’ before identifier ‘PVOID64’
- Err: error parsing query: found name, expected identifier, string
- error C2065: ‘cout’ : undeclared identifier
- error C2146: syntax error : missing ‘;’ before identifier ‘fd’
- 26、Error:No resource identifier found for attribute ’roundIcon’ in package ‘android’
- LoadRunnercatalog refund: Action.c(121): Error -27987: Requested image not found [MsgId: MERR-27987]
- error C2061: syntax error : identifier ‘BinryTreeNode’
- Error 3 error C2065: ‘endl‘ : undeclared identifier-Error 2 error C2065: ‘cout‘ : undeclared identif
- MPI cannot be found in C / C + +
- VS2010 library function problem: objidl. H (11266): error c2061: syntax error: identifier ‘__ RPC__ out_ xcount_ part’
- To solve the error of T2a w2a a2w, error c2065:_ LPW “: undeclared identifier