gpt4 book ai didi

c++ - 在 windows nts 模式下构建 php 扩展

转载 作者:太空宇宙 更新时间:2023-11-04 14:11:39 28 4
gpt4 key购买 nike

作为新版本的 PHP(5.3.x 或更高版本)在编译非线程安全模式的 Windows 上(zendGuardLoader 扩展只有 nts 版本),所以我需要用 nts 模式编译我的扩展。

当我使用 TS 模式编译它时它成功了,但是当我想打开模式 nts 时我得到了这个错误:

error LNK2001: unresolved external symbol __imp__executor_globals_id

我已经完成了 nts 模式的所有设置,比如 ZTS=0。并使用 php5.lib。

我使用的是php 5.3.19源码编译和vc++ 2008。

最佳答案

从项目预处理器中删除 ZTSZTS = 0 不是在 nts 模式下编译的好主意。

关于c++ - 在 windows nts 模式下构建 php 扩展,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13899110/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com