Re: Problem compiling a custom extension

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



John Smith wrote:
I am able to compile PHP, but I am trying to create an extension ( following zend's hello world tutorial ) and the configure step will not recognize my enable command.

I'm working with: PHP5.1 and have tried both win2k3/vs.net and winxp/vsc++6 with the exact same results.

My file structure looks like this:

c:\phpdev\php5.1\ext\hello\hello.h
c:\phpdev\php5.1\ext\hello\hello.c
c:\phpdev\php5.1\ext\hello\config.m4

According to the PHP documentation, I should be able to run the following command:

cscript /nologo configure.js --enable-hello=shared

I have also tried --enable-hello=yes, and --enable-hello=
c:\phpdev\php5.1\ext\hello,shared

All attempts result in the same configuration error:

"C:\phpdev\php5.1>cscript /nologo configure.js --enable-hello=shared
Unknown option --enable-hello; please try configure.js --help for a list of valid options"

When I run configure.js --help, I do not see --enable-hello as an option.

Is there a step I'm missing that will allow my configuration to recognize my new extension so I can compile it?

Thanks in advance

after looking at other extension directories, i realized that the config file for windows needs to be named: config.win32.

after that, had to re-run the autoconfig.bat file and then my configure.js --help would display my extension as an option.

--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Database Programming]     [PHP Install]     [Kernel Newbies]     [Yosemite Forum]     [PHP Books]

  Powered by Linux