# Recommended work flow for Win32 module compilation

- Thread: https://externals.io/message/21018
- Original archive: https://news-web.php.net/php.internals/21018
- Started by Patrick Barnes on 2005-12-03T09:24:32+00:00
- Messages: 6
- 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

---

## #21018 — Patrick Barnes — 2005-12-03T09:24:32+00:00

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

Hi there,

I was wondering what the recommended work flow was to generate shared
modules compatible with the binary PHP .zip/installer for Win32.

Additionally, what software would I need to use to compile my module?

Regards,
Patrick

---

## #21019 — Michael Wallner — 2005-12-03T09:36:10+00:00

URL: https://externals.io/message/21018#21019 · In reply to: #21018

Patrick Barnes wrote:
> Hi there,
> 
> I was wondering what the recommended work flow was to generate shared
> modules compatible with the binary PHP .zip/installer for Win32.
> 
> Additionally, what software would I need to use to compile my module?

If you want your module to work with the stock Win32 PHP release,
you'll need MSVC6.  The rest is described in the manual.

Regards,
-- 
Michael - <mike(@)php.net> http://dev.iworks.at/ext-http/http-functions.html.gz

---

## #21020 — Wez Furlong — 2005-12-03T14:04:21+00:00

URL: https://externals.io/message/21018#21020 · In reply to: #21019

> Patrick Barnes wrote:
> > […]
>
> If you want your module to work with the stock Win32 PHP release,
> you'll need MSVC6.  The rest is described in the manual.

VC6 or above... VC6 is really old now, and there are newer, free,
versions of the MS compiler available.

If you're targeting PHP 5, take a look at the
README.WIN32-BUILD-SYSTEM file in the PHP source.

--Wez.

---

## #21027 — Nuno Lopes — 2005-12-03T20:03:58+00:00

URL: https://externals.io/message/21018#21027 · In reply to: #21020

> 
> > […]
>
> VC6 or above... VC6 is really old now, and there are newer, free,
> versions of the MS compiler available.
>
> If you're targeting PHP 5, take a look at the
> README.WIN32-BUILD-SYSTEM file in the PHP source.
>
> --Wez.

The on-line manual has also been updated to reflect the PHP 5 build system: 
http://php.net/install.windows.building (based on above file writen by Wez).

Nuno

---

## #21029 — Patrick Barnes — 2005-12-04T07:25:42+00:00

URL: https://externals.io/message/21018#21029 · In reply to: #21020

Wez,

> > […]
>
> VC6 or above... VC6 is really old now, and there are newer, free,
> versions of the MS compiler available.
>
> If you're targeting PHP 5, take a look at the
> README.WIN32-BUILD-SYSTEM file in the PHP source.

The reason I asked is that modules compiled with VS2005 don't seem to
work with the stock Win32 PHP release, even after copying all the
various DLLs into place. I forget the exact error, however.

Works fine with the compiled with VS2005 PHP, though.

> --Wez.

Regards,
Patrick

---

## #21032 — Wez Furlong — 2005-12-04T16:02:03+00:00

URL: https://externals.io/message/21018#21032 · In reply to: #21029

Yeah, we should persuade Edin to upgrade his compiler :)

--Wez.


> Wez,
>
> > […]
>
> The reason I asked is that modules compiled with VS2005 don't seem to
> work with the stock Win32 PHP release, even after copying all the
> various DLLs into place. I forget the exact error, however.
>
> Works fine with the compiled with VS2005 PHP, though.
>
> > […]
>
> Regards,
> Patrick
