This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Thread operation


"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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]