This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Problem with header files.
- To: nimrod99 at dingoblue dot net
- Subject: Re: Problem with header files.
- From: Alexandre Oliva <aoliva at redhat dot com>
- Date: 03 Aug 2001 20:48:44 -0300
- Cc: gcc-help at gcc dot gnu dot org
- Organization: GCC Team, Red Hat
- References: <01080409411301.19611@Hand_Of_God>
On Aug 3, 2001, Matt R <nimrod99@dingoblue.net> wrote:
> I have a problem getting GCC to refer to header files.
No, your problem is not about header files, it's about libraries, that
are a completely different thing. Headers supply declarations or
inline implementations; libraries supply implementations for functions
that are only declared in headers, or that fail to be inlined. The
library in which sqrt() is defined is the math library, that you can
link in by adding `-lm' to the link command.
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist *Please* write to mailing lists, not to me