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 [EMAIL PROTECTED] [KeyID: 400B38E9]





_______________________________________________________
Send a cool gift with your E-Card
http://www.bluemountain.com/giftcenter/




To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to