Is there a way to build a program without stdlib linked to it?

me22 me22.ca@gmail.com
Wed May 14 03:46:00 GMT 2008


On Tue, May 13, 2008 at 10:51 PM, William Tambe <tambewilliam@gmail.com> wrote:
>  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?
>

I'm fairly sure that omitting is legal, in C89, so long as the
signature works out.

It might not be in C99 though, so you could try -std=c99 -pedantic

If that doesn't work either, you could always use C++ instead :P



More information about the Gcc-help mailing list