Basic Question on Building Multi-Threaded 'C' Apps with gcc

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux