From owner-freebsd-hackers Sat Feb 10 15:51:53 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 7D5A337B401; Sat, 10 Feb 2001 15:51:35 -0800 (PST) Received: (from jmz@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f1ANpZC97753; Sat, 10 Feb 2001 15:51:35 -0800 (PST) (envelope-from jmz@FreeBSD.org) Date: Sat, 10 Feb 2001 15:51:35 -0800 (PST) Message-Id: <200102102351.f1ANpZC97753@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: jmz set sender to jmz@FreeBSD.org using -f From: Jean-Marc Zucconi To: John Wilson Cc: jkh@winston.osd.bsdi.com, freebsd-hackers@FreeBSD.org Subject: Re: operator new with C++ and pthreads In-Reply-To: <28330970.981842130266.JavaMail.imail@pugsly.excite.com> References: <28330970.981842130266.JavaMail.imail@pugsly.excite.com> X-Mailer: Emacs 20.7.1 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG >>>>> 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] To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message