This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Thread operation
- From: NavEcos <ecos at navosha dot com>
- To: "Daniel Lidsten" <Daniel dot Lidsten at combitechsystems dot com>,"eCos Discussion" <ecos-discuss at sources dot redhat dot com>
- Date: Thu, 7 Nov 2002 05:31:12 +0000
- Subject: Re: [ECOS] Thread operation
- Organization: Navosha
- References: <004B1D7A5257174C9044A1B7BD0E60ED232C3E@ratatosk.combitechsystems.com>
- Reply-to: ecos at navosha dot com
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