# Developing PHP extensions on Windows with VC++, linking problems

- Thread: https://externals.io/message/43796
- Original archive: https://news-web.php.net/php.internals/43796
- Started by Eugenio Tacchini on 2009-04-29T10:05:11+00:00
- Messages: 1
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #43796 — Eugenio Tacchini — 2009-04-29T10:05:11+00:00

URL: https://externals.io/message/43796#43796

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.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.
I am also not sure if have to install a particular SDK.

Thanks!

Cheers,

Eugenio
