This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: FW: SIGSEGV occurring when code compiled with gcc with multithreaded code.
- To: "Orlando Betancourt" <orlando dot betancourt at solipsys dot com>
- Subject: Re: FW: SIGSEGV occurring when code compiled with gcc with multithreaded code.
- From: Alexandre Oliva <aoliva at redhat dot com>
- Date: 10 Aug 2000 15:48:28 -0300
- Cc: <gcc-bugs at gcc dot gnu dot org>
- Organization: GCC Team, Red Hat
- References: <NDBBIAIHPMHIACMANLANGELMCBAA.orlando.betancourt@solipsys.com>
On Aug 10, 2000, "Orlando Betancourt" <orlando.betancourt@solipsys.com> wrote:
> Using the flag solved the problem.
Now guess what? The -pthreads flag, which is supposed to be used when
compiling and linking multi-threaded code, not only links with
-lpthread, but also -Defines _REENTRANT and _PTHREADS :-)
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist *Please* write to mailing lists, not to me