Re: [INTERNALS-WIN] Developing PHP extensions on Windows with VC++, linking problems

[email protected] (Pierre Joye)
Newsgroups php.internals.win
Message-ID <[email protected]>
hi,

No idea, it is not a supported or it is not the recommended way to do
it. It is very easy to compile php and custom extensions using the
current system, and the IDE can still be used for debugging/analyzing
:)

Cheers,

On Wed, Apr 29, 2009 at 9:05 PM, Runar Bergeheim Olsen
<[email protected]> wrote:
> Hi,
> I know Elizabeth Smith figured out how to setup a VC++ 2008 project so that
> it was possible to code and build extensions from within the IDE. As far as
> I remember it worked for both debug and release builds. I first found the
> project file in her winapi project, sadly I can't remember the SVN url right
> now. Maybe anyone here got it?
>
> Runar
>
> 2009/4/29 Pierre Joye <[email protected]>
>
>> hi,
>>
>> This tutorial is completely wrong, sorry.
>>
>> You can basically any tutorial about extending PHP and then build your
>> extension on Windows using the common method to compile PHP itself. A
>> short summary can be found here:
>>
>> http://blog.harddisk.is-a-geek.org/index.php/dev/php/php-on-windows/
>> (for php itself)
>>
>> Cheers,
>> --
>> Pierre
>>
>> On Mon, Apr 27, 2009 at 5:43 PM, Eugenio Tacchini <[email protected]>
>> wrote:
>> > Hi all,
>> > I had to create a PHP extension and I read this article:
>> > <
>> http://www.talkphp.com/vbarticles.php?do=article&articleid=49&title=creating-custom-php-extensions
>> >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.
>> >
>> > Thanks!
>> >
>> > Cheers,
>> >
>> > Eugenio
>> >
>> > --
>> > Windows Internals Mailing List (http://www.php.net/)
>> > To unsubscribe, visit: http://www.php.net/unsub.php
>> >
>> >
>>
>>
>>
>> --
>> Pierre
>>
>> http://blog.thepimp.net | http://www.libgd.org
>>
>> --
>> Windows Internals Mailing List (http://www.php.net/)
>> To unsubscribe, visit: http://www.php.net/unsub.php
>>
>>
>



-- 
Pierre

http://blog.thepimp.net | http://www.libgd.org
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.