Re: Writing own extension on Win
| From: | brad lafountain | Date: | Tue, 29 Jan 2002 16:22:04 +0000 |
| Subject: | Re: Writing own extension on Win | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-78446@lists.php.net to get a copy of this message | ||
You need to make sure
COMPILE_DL_(EXTENSION)
is defined...
--- Alexander Merz <alexander.merz@t-online.de> wrote:
> I've wrote an PHP-extension. After some problems with compiling and linking,
> i've got the dll.
> Testing it with
>
> <?php
> dl("wintest1.dll");
> ?>
>
> it fails with
> "Invalid library (maybe not a PHP library) 'wintest1.dll'"
>
> The source was created with ext_skel on cygwin. Checking the other
> win-specific
> extensions like COM and Dotnet, i see no big difference to my code. Which
> compiler and linker settings are neccessary to get a valid library?
>
> System:
> Win98
> MS VisualC++ 6
>
> Cu, Alex
>
>
> --
> PHP Development Mailing List <http://www.php.net/>
> To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net
> For additional commands, e-mail: php-dev-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
__________________________________________________
Do You Yahoo!?
Great stuff seeking new owners in Yahoo! Auctions!
http://auctions.yahoo.com