views:

188

answers:

3

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
+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ș
A: 

It sounds like you have an #include directive inside of a namespace somewhere.

Shmoopty