Common run-time gcc errors and warnings and their possible causes

Segmentation fault (core dumped)
This is caused by accessing part of memory which has not been allocated to your program. There are several possible reasons: For this type of error, you want to key your search toward buffers that you should have allocated, array range and size checks, and functions which pass structs and struct pointers.
  
	'stdout' undeclared (first use this function)
  
  
This tells you that the variable stdout hasn't been declared. Because this particular name is usually declared in stdio.h, it means that you forgot to #include stdio.h.

This page was last modified .