Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 10 Feb 2001 17:11:35 -0800 (PST)
From:      John Wilson <john_wilson100@excite.com>
To:        Jean-Marc Zucconi <jmz@FreeBSD.org>
Cc:        freebsd-hackers@FreeBSD.org
Subject:   Re: operator new with C++ and pthreads
Message-ID:  <22824929.981853896386.JavaMail.imail@pugsly.excite.com>

next in thread | raw e-mail | index | archive | help
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 <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]





_______________________________________________________
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




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