[PHP] Developing PHP extensions on Windows with VC++, linking problems
Hi all, I had to create a PHP extension and I read this article: http://www.talkphp.com/vbarticles.php?do=articlearticleid=49title=creating-custom-php-extensionshttp://www.talkphp.com/vbarticles.ph...php-extensions Everything worked fine if I keep Debug as Active solution configuration in Build-Configuration managerbut 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. Thanks! Cheers, Eugenio -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Developing PHP extensions on Windows with VC++, linking problems
At 08.42 29/04/2009 +1000, Chris wrote: Eugenio Tacchini wrote: Hi all, I had to create a PHP extension and I read this article: http://www.talkphp.com/vbarticles.php?do=articlearticleid=49title=creating-custom-php-extensionshttp://www.talkphp.com/vbarticles.ph...php-extensions Everything worked fine if I keep Debug as Active solution configuration in Build-Configuration managerbut 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? Probably a better place to ask is the php-internals list, all of the people who develop the c code behind php are on there. I tried to ask php-win and internals-win without success; I've just tried internals also, following your advice. Eugenio. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php