extern in C
Rob Wehrli
rwehrli@azpower.com
Tue, 06 Mar 2001 18:05:17 -0700
Lucas Vogel wrote:
>
> is the compiled object in your library path? I think the correct switch is
> -I/path/to/compiled/obj(you'll have to double-check), but I think you have
> to include it in some way.
-I is for your include headers...
>
> HTH,
> Lucas
>
> > Then I try to build demo.c seperately, linking only with the
> > header file
> > (api.h) which is also included in arp.c
> > When compiling demo.c I get a linking error from 'ld' which says that
> > add_to_cache is an unresolved symbol.
> > What am I doing wrong? when running "ksyms" the function
> > appears to be
> > registered, so should it link, or is there somethine else I should do?
Try...
$ gcc -g -o demo api.o demo.c
You either need to directly link with your object file or create a
relocate-able shared library with your "api" in it.
> >
> > Any help would be appreciated.
> > Thanks,
> > Brad
> >
Take Care.
Rob!