This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Linux multithread option, pthread , D_REENTRANT
- From: sadf sadf <patelx01 at yahoo dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Fri, 11 Jun 2004 13:18:36 -0700 (PDT)
- Subject: Linux multithread option, pthread , D_REENTRANT
Hi,
I want to build multithread option on Linux.
I am using gcc 3.2.x version.
I have found, I have to use -pthread option. Is it
correct option, to make my application multithreaded?
Do I have to use this option for compile time or/&
link time?
Do I have to use the "-D_REENTRANT" option, at
compiler time time?
Is there any other command line option should I add,
to make my application multithreaded?
Thank you,
Avin Patel
__________________________________
Do you Yahoo!?
Friends. Fun. Try the all-new Yahoo! Messenger.
http://messenger.yahoo.com/