William Tambe wrote:
When I build a program ommiting:
#include <stdio.h> or
#include <stdlib.h>
I get message such as:
implicit declaration of built-in function 'printf' or 'malloc'
Is there a way to build my program in a way that an error such as
symbol not found is generated instead of gcc linking agains stdlib?
You want to cause just those functions to go missing at link time? On
most platforms, you could strip functions out of the libraries which are
linked automatically by gcc. It's outside the realm of gcc, unless those
are builtins present in libgcc.