wxWidget C3861: 'strdup': identifier not found, even with argument-dependent lookup
DEFINE_BUFFER(wxCharBuffer, char, wxStrdupA);
error C3861: 'strdup': identifier not found, even with argument-dependent lookup
Why can't it find strdup, when in wxchar.h:
#define wxStrdupA _strdup?
Why does it say it can't find strdup in lieu of _strdup which is in the #define?
#if defined(__VISUALC__) && __VISUALC__ >= 1400 #define wxStrdupA _strdup#elif !(defined(__MWERKS__) && defined(__WXMAC__)) && !defined(__WXWINCE__) /* use #define, not inline wrapper, as it is tested with #ifndef below */ #define wxStrdupA strdup#endif
1) What compiler are you using? If you're using anything other than the Visual Studio, that explains why it's looking for strdup over _strdup
2) Are you #include-ing <cstring> / <string.h> ? Probably not -- no wonder it can't find the identifier, that's where it's defined ;-).
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement