Search code examples
cgcccygwinundefined-reference

An error occurred while using the gcc command


"undefined reference to 'func~'" error..

I'm new to that program, so I can't figure out the reason for the error.

enter image description here


Solution

  • You need to add #include <stdlib.h>