Parent document is top of "comp.unix.aix Frequently Asked Questions (Part 4 of 5)"
Previous document is "2.29: How do I access more than 256 Megabytes of memory?"
Next document is "2.31: Why does pthread_create return the error code 22?"

2.30: How do I use POSIX threads with gcc 2.7.x?

From: David Edelsohn <dje@watson.ibm.com>

The code generated by GCC is compatible with threads, but gcc-2.7 
was released so long ago that it did not provide an option to perform
the extra link steps necessary to support threads:

1) Compile all source files with "-D_THREAD_SAFE" macro defined.
2) Link with "-L/usr/lib/threads -lpthreads -lc_r /usr/lib/libc.a"
   to obtain the pthreads support 
   and add "-nostartfiles /usr/lib/crt0_r.o" to the beginning of the
   link command line (using gcc to link!) to initialize threads.

Parent document is top of "comp.unix.aix Frequently Asked Questions (Part 4 of 5)"
Previous document is "2.29: How do I access more than 256 Megabytes of memory?"
Next document is "2.31: Why does pthread_create return the error code 22?"