Re: Re: php extensions on windows
| From: | Brent R. Matzelle | Date: | Thu, 18 Apr 2002 19:11:21 +0000 |
| Subject: | Re: Re: php extensions on windows | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-82977@lists.php.net to get a copy of this message | ||
--- J Smith <dark_panda@hushmail.com> wrote:
> 0. Start a new project in VC++ and add your extension's files.
>
> 1. In the Configurations dialog, add two configurations: Release_TS
> and
> Debug_TS. Release_TS should copy the settings from Release and
> Debug_TS
> should obviously copy from Debug. You can Remove Release and Debug
> and
> close the dialog. The next set of steps is for the Release_TS
> configuration. If you can figure that out, you should be able to
> get
> Debug_TS working fine.
>
> 2. Open up Project->Settings. On the C/C++ tab, General Category,
> added the
> following preprocessor definitions: ZEND_DEBUG=0,
> COMPILE_DL_YOUR_EXTENSION_NAME, ZTS=1, ZEND_WIN32, PHP_WIN32.
> YOUR_EXTENSION_NAME is the name you'll find in the sources
> generated by
> ext_skel.
>
> 3. In the Code Generation Category, change Use run-time Library to
> "Multithreaded DLL".
>
> 4. In the Preprocessor Category, add the following "Additional
> include
> directories": ..\.., ..\..\main, ..\..\Zend, ..\..\TSRM,
> ..\..\bindlib_w32.
>
> 5. On the Link tab in the General Category, change the Output file
> name to
> ..\..\Release_TS/php_yourextension.dll.
>
> 6. On that same tab, same category, add php4ts.lib to
> Object/library
> modules.
>
> 7. In the Input Category, add the following to Additional library
> path:
> ..\..\Release_TS.
>
> That should be it. Close dialog and set the active configuration to
>
> Release_TS and (hopefully) build the DLL.
This information would be a terrific addition to the PHP
documentation. How might we get it added?
Brent
__________________________________________________
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.yahoo.com/