From owner-freebsd-hackers Sat Feb 10 16: 7:35 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from harmony.village.org (rover.village.org [204.144.255.66]) by hub.freebsd.org (Postfix) with ESMTP id 0FBF137B67D for ; Sat, 10 Feb 2001 16:07:16 -0800 (PST) Received: from harmony.village.org (localhost.village.org [127.0.0.1]) by harmony.village.org (8.11.1/8.11.1) with ESMTP id f1B07BW17587; Sat, 10 Feb 2001 17:07:14 -0700 (MST) (envelope-from imp@harmony.village.org) Message-Id: <200102110007.f1B07BW17587@harmony.village.org> To: John Wilson Subject: Re: operator new with C++ and pthreads Cc: freebsd-hackers@FreeBSD.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> Date: Sat, 10 Feb 2001 17:07:11 -0700 From: Warner Losh Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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