title: ‘memcpy’ was not declared in this scope when using gcc compiler
body: <p>Actually I'm trying to compile a c/c++ project with mingw. The same project is actually compiled with visual studio compiler. For this purpose, I have written a makefile and everything works so far.</p>
  
  <p>During compiling I get error regarding functions which are declared withing string.h and stdio.h like memcpy() , printf()..., with following error:</p>
  
  <pre><code>error: 'memcpy' was not declared in this scope
  </code></pre>
  
  <p>That's  because the compiler didn't find the functions. When compiling within visual studio, this error didn't appear, logically, because of compiler include paths like:</p>
  
  <pre><code>c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\
  </code></pre>
  
  <p>My question now is:
  What should I do in my makefile to tell the compiler to use the "string.h" and "stdio.h" functions from the mingw. I tried to put the include path in the makefile, like:</p>
  
  <pre><code> INCLUDE_DIRS =\
   C:\MinGW\include
  </code></pre>
  
  <p>but it has no effect. 
  And also, there is a difference between the string.h and stdio.h from visual studio and string.h and stdio.h used by gcc. Can this be a problem?</p>