Date: Sat, 10 Feb 2001 15:51:35 -0800 (PST) From: Jean-Marc Zucconi <jmz@FreeBSD.org> To: John Wilson <john_wilson100@excite.com> Cc: jkh@winston.osd.bsdi.com, freebsd-hackers@FreeBSD.org Subject: Re: operator new with C++ and pthreads Message-ID: <200102102351.f1ANpZC97753@freefall.freebsd.org> In-Reply-To: <28330970.981842130266.JavaMail.imail@pugsly.excite.com> References: <28330970.981842130266.JavaMail.imail@pugsly.excite.com>
index | next in thread | previous in thread | raw e-mail
>>>>> John Wilson writes:
> ---------
> my_new.cc
> ---------
> #include <stdio.h>
> #include <stdlib.h>
> #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
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200102102351.f1ANpZC97753>
