[ECOS] Thread operation

NavEcos ecos@navosha.com
Thu Nov 7 05:31:00 GMT 2002


Include <cyg/kernel/thread.inl>

Please make an effort to search the code to find out where functions are 
defined.

On Thursday 07 November 2002 11:50 am, Daniel Lidsten wrote:
> Hi again
>
> I have #include <cyg/kernel/thread.hxx> in my code already.
>
> I have also tried to remove the "#ifdef CYGVAR_KERNEL_THREADS_NAME" that
> is located around the actual functions and then rebuild eCos but it
> doesnt seem to be any difference. I get the same error while linking:
>
> undefined reference to `Cyg_Thread::get_name(void)
>
> Is there any way around this, can i get hold of the thread name any
> other way?
>
> Regards, Daniel
>
> > -----Original Message-----
> > From: NavEcos [mailto:ecos@navosha.com]
> > Sent: den 6 november 2002 10:54
> > To: Daniel Lidsten; eCos Discussion
> > Subject: Re: [ECOS] Thread operation
> >
> >
> > You need to include the following inyour code
> >
> >  #include <cyg/kernel/thread.hxx>
> >
> > You can find more documentation here:
>
> http://navosha.com/ecos/cpp/Cyg_Thread.html
>
>
> -Rich
>
> On Wednesday 06 November 2002 04:15 pm, Daniel Lidsten wrote:
> > Hi,
> >
> > I am trying to use the C++ api to get information about my threads
> > that = =3D i have in the system. However, it get some undefined
> > reference while = =3D linking.
> >
> > undefined reference to `Cyg_Thread::get_list_head(void) undefined =
> > reference to `Cyg_Thread::get_name(void) undefined reference to =
> > `Cyg_Thread::get_list_next(void)
> >
> > When i look in the code then i can see that some things lies within
> > =3D = defines like below but in my configtool i have them enabled.
> > What have i = =3D missed....?
> >
> > CYGVAR_KERNEL_THREADS_LIST
> > CYGVAR_KERNEL_THREADS_NAME
> >
> > Regards, Daniel


--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss



More information about the Ecos-discuss mailing list