Error 1 error C2039: 'memchr' : is not a member of '`global namespace'' c:\program files\microsoft visual studio 9.0\vc\include\cstring 19 new project 17
A:
Are you including the relevant header file? It's in string.h and memory.h, according to MS.
T.J. Crowder
2009-08-17 16:09:12
+1
A:
You included header. This declares memchr function in std namespace. So you either include string.h or memory.h headers instead of cstring, or use std namespace when calling memchr.
Cătălin Pitiș
2009-08-17 16:41:01
A:
It sounds like you have an #include
directive inside of a namespace
somewhere.
Shmoopty
2009-08-17 21:31:12