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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



William Tambe <tambewilliam@xxxxxxxxx> writes:

> 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?

See the -nostdlib and -nodefaultlibs options.

Ian

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux