avr-gcc-list
[Top][All Lists]
Advanced

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

Re: [avr-gcc-list] Exporting functions as lib


From: Joerg Wunsch
Subject: Re: [avr-gcc-list] Exporting functions as lib
Date: Sun, 14 Dec 2003 22:18:50 +0100 (MET)

As Christian Neumair <address@hidden> wrote:

>Now, I'd like to build and install it, i.e. I can use it using
>#include <mylib.h>
>just like I can do
>#include <stdio.h> and it should magically link against it.

Btw., the way you access your include files is completely unrelated to
what you're linking against.  Anything that is not in the standard C
library needs a linker option -- even the math library, -lm, even
though the include file is named <math.h>.  (This is mainly for
hysterical raisins...)
-- 
J"org Wunsch                                           Unix support engineer
address@hidden        http://www.interface-systems.de/~j/


reply via email to

[Prev in Thread] Current Thread [Next in Thread]