From owner-freebsd-hackers Mon Jul 17 10:56:11 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from rover.village.org (rover.village.org [204.144.255.49]) by hub.freebsd.org (Postfix) with ESMTP id 7922F37BB6F for ; Mon, 17 Jul 2000 10:56:03 -0700 (PDT) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (harmony.village.org [10.0.0.6]) by rover.village.org (8.9.3/8.9.3) with ESMTP id LAA81163; Mon, 17 Jul 2000 11:55:59 -0600 (MDT) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (localhost.village.org [127.0.0.1]) by harmony.village.org (8.9.3/8.8.3) with ESMTP id LAA62573; Mon, 17 Jul 2000 11:55:34 -0600 (MDT) Message-Id: <200007171755.LAA62573@harmony.village.org> To: "Dave Preece (KB Group)" Subject: Re: gcc 2.95.2, placement new hassles. Cc: freebsd-hackers@FreeBSD.ORG In-reply-to: Your message of "Mon, 17 Jul 2000 16:04:36 +1200." <67B808B0DD93D211ABEE0000B498356B36173D@internet.kbgroup.co.nz> References: <67B808B0DD93D211ABEE0000B498356B36173D@internet.kbgroup.co.nz> Date: Mon, 17 Jul 2000 11:55:34 -0600 From: Warner Losh Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In message <67B808B0DD93D211ABEE0000B498356B36173D@internet.kbgroup.co.nz> "Dave Preece (KB Group)" writes: : Possibly off topic, but here goes. : : I'm trying to use placement new with gcc 2.95.2 on FBSD4.0-Release and can't : get it to go with an error: : : :11: too many arguments to function `void * operator new(unsigned : int)' : : Disclaimer: I've never tried to use placement new before, but I've RTFM'd : fairly heavily around this one and I'm sure both the source and version of : gcc are OK. Said offending lines of source are below: : : void* pShared=shm::GetSharedMemoryPtr(); //FYI a static member : function : shm* pObject=new(pShared) shm(); : : Any ideas? You are using boehem gcc or some other thing that #defines new in evil and unnatural ways? Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message