Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:25829 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 59613 invoked by uid 1010); 25 Sep 2006 21:25:18 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 59598 invoked from network); 25 Sep 2006 21:25:18 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 25 Sep 2006 21:25:18 -0000 Authentication-Results: pb1.pair.com smtp.mail=olivier.hill@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=olivier.hill@gmail.com; sender-id=pass; domainkeys=good Received-SPF: pass (pb1.pair.com: domain gmail.com designates 64.233.184.236 as permitted sender) DomainKey-Status: good X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: olivier.hill@gmail.com X-Host-Fingerprint: 64.233.184.236 wr-out-0506.google.com Linux 2.4/2.6 Received: from [64.233.184.236] ([64.233.184.236:36865] helo=wr-out-0506.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id B1/47-10614-C3948154 for ; Mon, 25 Sep 2006 17:25:18 -0400 Received: by wr-out-0506.google.com with SMTP id 55so820145wri for ; Mon, 25 Sep 2006 14:25:14 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=ep3q87A5fiGmVR/a00Rl8HRTYDVpt2bmeLpE1dQpFHWJEcIoz46Oe6tAIF/En/wZBEuXKneB6ANSGvO/YIZ5rr3/OkhdwNdqM+WBlnzNxRAPZExABnIf+ZWYPODOP6pz/8bioV6Het1Vs+5CrLvS45X+HCabO0zsa9nNyBDgRK4= Received: by 10.90.71.12 with SMTP id t12mr1855657aga; Mon, 25 Sep 2006 14:25:13 -0700 (PDT) Received: by 10.90.30.19 with HTTP; Mon, 25 Sep 2006 14:25:12 -0700 (PDT) Message-ID: Date: Mon, 25 Sep 2006 17:25:12 -0400 To: Stut Cc: internals@lists.php.net In-Reply-To: <451845A3.4010901@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <451845A3.4010901@gmail.com> Subject: Re: [PHP-DEV] Building C++ extensions From: olivier.hill@gmail.com ("Olivier Hill") On 9/25/06, Stut wrote: > > I had expected the PHP_REQUIRE_CXX() macro to trigger a change to the > link command, but it does not seem to have done anything beyond > influencing what is used to compile the extension itself. Hi, I think you have to add stdc++ with PHP_ADD_LIBRARY(). I do have a C++ ext internally here, and it still try to link with gcc and not g++. Still, it does work. Sincerely, Olivier