You have such a problem, just go to the man page for this function and it will tell you which header is missing, for example
$ man memset MEMSET(3) BSD Library Functions Manual MEMSET(3) NAME memset -- fill a byte string with a byte value LIBRARY Standard C Library (libc, -lc) SYNOPSIS #include <string.h> void * memset(void *b, int c, size_t len);
Note that for C ++, it is usually preferable to use the corresponding equivalent C ++ headers, <cstring> / <cstdio> / <cstdlib> / etc, rather than C <string.h> / <stdio.h> / <stdlib.h> / etc.
Paul R Mar 24 '10 at 7:40 2010-03-24 07:40
source share