This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: gcc option behaving funny
- To: Jan Mannekens <Jan dot Mannekens at alcatel dot be>
- Subject: Re: gcc option behaving funny
- From: Alexandre Oliva <aoliva at redhat dot com>
- Date: 30 Jun 2001 00:26:01 -0300
- Cc: gcc-help <gcc-help at gcc dot gnu dot org>
- Organization: GCC Team, Red Hat
- References: <3B3C6E9F.CE4E6BB@alcatel.be>
On Jun 29, 2001, Jan Mannekens <Jan.Mannekens@alcatel.be> wrote:
> I'm using gcc version 2.95.3 and when linking I use the -pthread option.
> On my Linux-PC I have no problem with that. When I build the same code
> on our DEC Alpha XP900
Which operating system is this DEC Alpha running? If it's GNU/Linux,
it should work just the same. If it's some other OS, the spelling of
the option may be different. On some systems, it's -pthreads; on
others, it's -mthread or -mthreads. On others, you have to
-D_REENTRANT and -lpthread explicitly. It all depends on the way the
native compiler works; GCC attempts to accept the same options, for
compatibility.
--
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