* RE: [ECOS] Thread operation
@ 2002-11-07 3:51 Daniel Lidsten
2002-11-07 5:31 ` NavEcos
2002-11-07 7:40 ` Nick Garnett
0 siblings, 2 replies; 6+ messages in thread
From: Daniel Lidsten @ 2002-11-07 3:51 UTC (permalink / raw)
To: ecos, eCos Discussion
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
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [ECOS] Thread operation
2002-11-07 3:51 [ECOS] Thread operation Daniel Lidsten
@ 2002-11-07 5:31 ` NavEcos
2002-11-07 7:40 ` Nick Garnett
1 sibling, 0 replies; 6+ messages in thread
From: NavEcos @ 2002-11-07 5:31 UTC (permalink / raw)
To: Daniel Lidsten, eCos Discussion
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
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [ECOS] Thread operation
2002-11-07 3:51 [ECOS] Thread operation Daniel Lidsten
2002-11-07 5:31 ` NavEcos
@ 2002-11-07 7:40 ` Nick Garnett
1 sibling, 0 replies; 6+ messages in thread
From: Nick Garnett @ 2002-11-07 7:40 UTC (permalink / raw)
To: Daniel Lidsten; +Cc: ecos, eCos Discussion
"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
^ permalink raw reply [flat|nested] 6+ messages in thread
* RE: [ECOS] Thread operation
@ 2002-11-07 23:50 Daniel Lidsten
0 siblings, 0 replies; 6+ messages in thread
From: Daniel Lidsten @ 2002-11-07 23:50 UTC (permalink / raw)
To: ecos; +Cc: eCos Discussion
Dont think i havent tried. It ended up with me adding an own function to
the Cyg_Thread class and an C-api to access it. Now i can get hold of
the name of every thread. Strange...
>
> Please make an effort to search the code to find out where
> functions are
> defined.
>
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [ECOS] Thread operation
2002-11-06 8:15 Daniel Lidsten
@ 2002-11-06 9:54 ` NavEcos
0 siblings, 0 replies; 6+ messages in thread
From: NavEcos @ 2002-11-06 9:54 UTC (permalink / raw)
To: Daniel Lidsten, eCos Discussion
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
^ permalink raw reply [flat|nested] 6+ messages in thread
* [ECOS] Thread operation
@ 2002-11-06 8:15 Daniel Lidsten
2002-11-06 9:54 ` NavEcos
0 siblings, 1 reply; 6+ messages in thread
From: Daniel Lidsten @ 2002-11-06 8:15 UTC (permalink / raw)
To: eCos Discussion
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
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2002-11-08 7:50 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-11-07 3:51 [ECOS] Thread operation Daniel Lidsten
2002-11-07 5:31 ` NavEcos
2002-11-07 7:40 ` Nick Garnett
-- strict thread matches above, loose matches on Subject: below --
2002-11-07 23:50 Daniel Lidsten
2002-11-06 8:15 Daniel Lidsten
2002-11-06 9:54 ` NavEcos
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).