This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Thread operation
- From: Nick Garnett <nickg at ecoscentric dot com>
- To: "Daniel Lidsten" <Daniel dot Lidsten at combitechsystems dot com>
- Cc: <ecos at navosha dot com>, "eCos Discussion" <ecos-discuss at sources dot redhat dot com>
- Date: 07 Nov 2002 12:24:43 +0000
- Subject: Re: [ECOS] Thread operation
- References: <004B1D7A5257174C9044A1B7BD0E60ED232C3E@ratatosk.combitechsystems.com>
"Daniel Lidsten" <Daniel.Lidsten@combitechsystems.com> writes:
> 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?
>
You also need to include <cyg/kernel/thread.inl>, which is where the
implementations of these functions are. Take a look at the existing
code that uses these functions for an example.
--
Nick Garnett - eCos Kernel Architect
http://www.eCosCentric.com/
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss