Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 10 Feb 2001 17:07:11 -0700
From:      Warner Losh <imp@harmony.village.org>
To:        John Wilson <john_wilson100@excite.com>
Cc:        freebsd-hackers@FreeBSD.ORG
Subject:   Re: operator new with C++ and pthreads 
Message-ID:  <200102110007.f1B07BW17587@harmony.village.org>
In-Reply-To: Your message of "Fri, 09 Feb 2001 22:21:54 PST." <22547061.981786114631.JavaMail.imail@pugsly.excite.com> 
References:  <22547061.981786114631.JavaMail.imail@pugsly.excite.com>  

next in thread | previous in thread | raw e-mail | index | archive | help
In message <22547061.981786114631.JavaMail.imail@pugsly.excite.com> John Wilson writes:
: but gcc (g++) doesn't seem to want to link them in, and uses its own
: __builtin_new and __builtin_delete instead.

we do this all the time.

	g++ foo.o -o foo -pthreads -static

works great.  You must use g++ and not gcc to like, or you lose.

Warner


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200102110007.f1B07BW17587>