Sorry to reply to my own message, but I found the problem, and it was
something silly that I overlooked because I didn't know to check.
Adding -lpthread to the gcc command was all I needed to do.
On a related note, with threads, are there any issues with memory
access and IO that would be of concern? No two threads should attempt
to read from the same I/O pin, but different I/O pin read and writes
may occur from different threads. Would there be any issues I would
be missing?
Thanks again,
Sajendra N.
--- In "noone_1983" <> wrote:
>
>
> Hello all,
> This may be a bit of a silly question arising from inexperience,
> but please bear with me. I am new to programming on the TS-7200,
and
> under Linux in general. I am testing creating a simple threaded
> program, and I am running into problems. I created a program using
> the pthread library, just a simple program that creats two threads
> that do their thing. I can get it to compile and run normally, but
> when I try to compile it using the crosstool, I get a compilation
> error calling pthread_create.
> Am I missing something simple? Also, does anyone have any accessible
> information on thread programming on this machine?
>
> Thanks.
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|