This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Problem with header files.


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]