LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 05-10-2001, 09:46 PM   #1
chenjifu
LQ Newbie
 
Registered: May 2001
Posts: 4

Rep: Reputation: 0
Question


Help me!
When I used pthread_create at shared library,
It didn't work at all, I start a thread with the
following code:

...
pthread_t idthread;
pthread_attr_t attr;

pthread_attr_init(&attr);
pthread_create(&idthread, &attr,
myroutine, (void*) myarg);
pthread_join(&idthread, NULL);
...

It is ok when I put it to NON-SHARED(such as
a.out) but the thread didn't start at all.

please give help

Yours sincerely,
Jackie Chen
chenjifu@kali.com.cn
5/11, 2001
Shanghai, P.R.C.






 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Where can I get every shared library at? Balkman Linux - General 2 08-28-2004 10:56 PM
help shared library jingle_mj Programming 4 08-13-2004 04:13 AM
help shared library jingle_mj Linux - General 1 08-13-2004 03:11 AM
howto compile bin with my library using all-static and shared linked standart library stpg Programming 4 06-29-2004 04:20 AM
Library Files for pthread_create() khokhar Programming 3 02-02-2004 10:39 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 08:58 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration