This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: Unable to link sysctl()
- From: Andrew Lunn <andrew at lunn dot ch>
- To: aditya veer singh <adityav at cdotd dot ernet dot in>
- Cc: ecos-discuss at sourceware dot org
- Date: Mon, 15 May 2006 14:07:13 +0200
- Subject: Re: [ECOS] Unable to link sysctl()
- References: <20060515115115.M86370@cdotd.ernet.in>
On Mon, May 15, 2006 at 06:22:29PM +0630, aditya veer singh wrote:
> Hi All,
>
> I am using the BSD tcp/ip stack.
> In my code I am using function called 'sysctl'.
>
> I have included the file 'sys/sysctl.h' in my c code where it is being used.
> Install tree is having kern_sysctl.c where sysctl function is defined.
>
> When compile the program it get complied but while linking it, gives a link error as
> undefined refernce to sysctl.
>
> What needs to be changed that while linking the code it is able to link sysctl?
>
CYGPKG_NET_FREEBSD_SYSCTL
Andrew
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss