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]

 



On Tue, May 13, 2008 at 10:51 PM, William Tambe <tambewilliam@xxxxxxxxx> 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

[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