From owner-freebsd-hackers Sat Feb 10 17:11:54 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from kuku.excite.com (kuku-rwcmta.excite.com [198.3.99.63]) by hub.freebsd.org (Postfix) with ESMTP id E9C3137B67D; Sat, 10 Feb 2001 17:11:36 -0800 (PST) Received: from pugsly.excite.com ([199.172.148.160]) by kuku.excite.com (InterMail vM.4.01.02.39 201-229-119-122) with ESMTP id <20010211011136.ITSA3417.kuku.excite.com@pugsly.excite.com>; Sat, 10 Feb 2001 17:11:36 -0800 Message-ID: <22824929.981853896386.JavaMail.imail@pugsly.excite.com> Date: Sat, 10 Feb 2001 17:11:35 -0800 (PST) From: John Wilson To: Jean-Marc Zucconi Subject: Re: operator new with C++ and pthreads Cc: freebsd-hackers@FreeBSD.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Excite Inbox X-Sender-Ip: 192.116.157.236 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG You are absolutely right, that `inline' shouldn't have been there. My bad. It works now - thanks! John On Sat, 10 Feb 2001 15:51:35 -0800 (PST), Jean-Marc Zucconi wrote: > >>>>> John Wilson writes: > > > --------- > > my_new.cc > > --------- > > > #include > > #include > > > #include "my_new.h" > > > inline void *operator new(size_t size) > > { > > printf("my new was called with size = %u\n", size); > > return malloc(size); > > } > > > This is stupid. Inline functions are not compiled. You must move this > code in your .h file. > > Jean-Marc > > -- > Jean-Marc Zucconi -- PGP Key: finger jmz@FreeBSD.org [KeyID: 400B38E9] _______________________________________________________ Send a cool gift with your E-Card http://www.bluemountain.com/giftcenter/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message