All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jean-Christophe ARNU <jc.arnu@wanadoo.fr>
To: kjlin <kj.lin@viditec-netmedia.com.tw>
Cc: linux-mips@oss.sgi.com
Subject: Re: compile C++ code
Date: 31 Aug 2001 14:38:38 -0400	[thread overview]
Message-ID: <999283122.29395.45.camel@ez> (raw)
In-Reply-To: <02b801c13203$f52ad440$056aaac0@kjlin>

On 31 Aug 2001 18:01:51 +0800, kjlin wrote:

> #mips-linux-gcc test.C
> /usr/lib/gcc-lib/mips-linux/egcs-2.91.66/libgcc.a(frame.o): In function `decode_uleb128':
> /usr/src/redhat/BUILD/egcs-1.1.2/target-mips-linux/gcc/../../gcc/frame.c(.data+0x0): undefined reference to `pthread_create'
> /usr/mips-linux/bin/ld: bfd assertion fail ../../bfd/elf32-mips.c:5123
> mips-linux-gcc: Internal compiler error: program ld got fatal signal 11
> #mips-linux-g++ test.C
> /usr/mips-linux/lib/libstdc++.so: undefined reference to `pthread_create'
> /usr/mips-linux/lib/libstdc++.so: undefined reference to `pthread_getspecific'
> /usr/mips-linux/lib/libstdc++.so: undefined reference to `pthread_once'
> /usr/mips-linux/lib/libstdc++.so: undefined reference to `pthread_key_create'
> /usr/mips-linux/lib/libstdc++.so: undefined reference to `pthread_setspecific'
> 
	It seems you should link with pthread lib : 
	#mips-linux-g++ test.C -lpthread

	I think the libgcc.a should be linked with it ... Can anyone tell us
further on that subject?
-- 
Jean-Christophe ARNU
s/w developer 
Paratronic France

  parent reply	other threads:[~2001-08-31 12:42 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-08-31 10:01 compile C++ code kjlin
2001-08-31 10:01 ` kjlin
2001-08-31 11:13 ` H.Heinold
2001-08-31 18:38 ` Jean-Christophe ARNU [this message]
2001-09-03  1:33   ` kjlin
2001-09-03  1:33     ` kjlin
2001-09-03  6:21     ` Brian Murphy

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=999283122.29395.45.camel@ez \
    --to=jc.arnu@wanadoo.fr \
    --cc=kj.lin@viditec-netmedia.com.tw \
    --cc=linux-mips@oss.sgi.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.