This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Basic Question on Building Multi-Threaded 'C' Apps with gcc
- From: Frank Tufano <frank at art-llc dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Thu, 29 Nov 2007 12:48:32 -0500
- Subject: Basic Question on Building Multi-Threaded 'C' Apps with gcc
Greetings,
I am developing a multi-threaded application (written in 'C') on Linux
on the AMD x86-64 platform. I would like to know what compile and link
options I should be specifying to ensure that the application builds
properly. (We are using the posix thread model). The only thread
related option info I can find in the AMD x86-64 Options section of the
online manual is the -mthreads option, which is for "thread-safe
exception handling on `Mingw32'", which is not applicable. Below is my
gcc version info and some system info.
gcc -v
Reading specs from
/auto_mnt/local/install/gcc-3.4.1/bin/../lib/gcc/x86_64-unknown-linux-gnu/3.4.1/specs
Configured with: ./configure --prefix=/usr/local/install/gcc-3.4.1
--with-system-zlib
Thread model: posix
gcc version 3.4.1
uname -r -v -p -o
2.6.5-7.283-smp #1 SMP Wed Nov 29 16:55:53 UTC 2006 x86_64 GNU/Linux
Your help is greatly appreciated,
Frank Tufano