Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:43796 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 6833 invoked from network); 29 Apr 2009 10:05:36 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 29 Apr 2009 10:05:36 -0000 Authentication-Results: pb1.pair.com header.from=eugenio@favoriti.it; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=eugenio@favoriti.it; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain favoriti.it from 62.94.10.162 cause and error) X-PHP-List-Original-Sender: eugenio@favoriti.it X-Host-Fingerprint: 62.94.10.162 mp1-smtp-2.eutelia.it Linux 2.4/2.6 Received: from [62.94.10.162] ([62.94.10.162:56896] helo=smtp.eutelia.it) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id BF/B1-21632-E6628F94 for ; Wed, 29 Apr 2009 06:05:35 -0400 Received: from hopy.favoriti.it (ip-171-20.sn3.eutelia.it [213.136.171.20]) by smtp.eutelia.it (Eutelia) with ESMTP id EE942B9559 for ; Wed, 29 Apr 2009 12:05:31 +0200 (CEST) X-Mailer: QUALCOMM Windows Eudora Version 7.1.0.9 Date: Wed, 29 Apr 2009 12:05:11 +0200 To: internals@lists.php.net Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Message-ID: <20090429100531.EE942B9559@smtp.eutelia.it> Subject: Developing PHP extensions on Windows with VC++, linking problems From: eugenio@favoriti.it (Eugenio Tacchini) Hi all, I am not sure this is the right place to ask this question but I tried other ML without having replies and someone on php-general advised me to try internals too. I had to create a PHP extension and I read this article: http://www.talkphp.com/vbarticles.ph...php-extensions Everything worked fine if I keep "Debug" as "Active solution configuration" in "Build->Configuration manager"....but in this way I can only use the extension created on the machine I compiled it. If I choose "Release" instead of "Debug" I get a fatal error: dllmain.obj : fatal error LNK1179: invalid or corrupt file: duplicate COMDAT '_putwchar' Can you help me? I'm using Visual C++ 2008 Express edition, PHP 5.2.4, Win xp home. I am also not sure if have to install a particular SDK. Thanks! Cheers, Eugenio