PHP: 从源程序编译

PHP: 从源程序编译

切换语言:

English

German

Spanish

French

Italian

Japanese

Brazilian Portuguese

Russian

Turkish

Ukrainian

Chinese (Simplified)

Other

从源程序编译

参阅 » 逐步构建说明 以使用 Visual Studio 进行编译。

发现了问题?

了解如何改进此页面

提交拉取请求

报告一个错误

+添加备注

用户贡献的备注 3 notes

up

down

5

Bas van Beek ¶16 years ago

If trying to compile the code (Windows XP, SDK v6.1) and you get the following types of errors:

c:\phpdev\php-5.2.9\main\php_network.h(128) : warning C4005: 'POLLIN' : macro redefinition

c:\program files\microsoft sdks\windows\v6.1\include\winsock2.h(1495) :

see previous definition of 'POLLIN'

c:\phpdev\php-5.2.9\main\php_network.h(129) : warning C4005: 'POLLPRI' : macro redefinition

c:\program files\microsoft sdks\windows\v6.1\include\winsock2.h(1496) :

see previous definition of 'POLLPRI'

c:\phpdev\php-5.2.9\main\php_network.h(130) : warning C4005: 'POLLOUT' : macro redefinition

c:\program files\microsoft sdks\windows\v6.1\include\winsock2.h(1499) :

see previous definition of 'POLLOUT'

c:\phpdev\php-5.2.9\main\php_network.h(131) : warning C4005: 'POLLERR' : macro redefinition

c:\program files\microsoft sdks\windows\v6.1\include\winsock2.h(1502) :

see previous definition of 'POLLERR'

c:\phpdev\php-5.2.9\main\php_network.h(132) : warning C4005: 'POLLHUP' : macro redefinition

c:\program files\microsoft sdks\windows\v6.1\include\winsock2.h(1503) :

see previous definition of 'POLLHUP'

c:\phpdev\php-5.2.9\main\php_network.h(133) : warning C4005: 'POLLNVAL' : macro redefinition

c:\program files\microsoft sdks\windows\v6.1\include\winsock2.h(1504) :

see previous definition of 'POLLNVAL'

NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN

\cl.exe"' : return code '0x2'

Stop.

You can alter the Makefile and add the following switch to CFLAGS:

/D _WIN32_WINNT

up

down

-1

php at tattodecastro dot com ¶18 years ago

If you are getting the following error message:

Input Error: There is no script engine for file extension ".js"

with Visual Studio 2005 Command Prompt or similar, try to add "/e:jscript" to the command line.

Something like:

cscript /nologo /e:jscript win32/build/buildconf.js

It worked for me, I hope it helps.

up

down

-2

Anonymous ¶19 years ago

>> Compiling using Visual Studio .NET will create binaries dependent of msvcp71.dll

Only if you compile with the wrong runtime library.

+添加备注

相关文章

FME入门系列教程2-FME软件操作教程与完整指南获取步骤
365bet育在线网址

FME入门系列教程2-FME软件操作教程与完整指南获取步骤

⌚ 08-15 👁️‍🗨️ 175
如何禁用网易有爱里的一些自启动插件
beat365手机版官方网站

如何禁用网易有爱里的一些自启动插件

⌚ 08-19 👁️‍🗨️ 153
《鬼谷八荒》器灵强度排行介绍
365结束投注什么意思

《鬼谷八荒》器灵强度排行介绍

⌚ 08-02 👁️‍🗨️ 6880