C++ 与php zend libs和c+冲突+;libs(ctime)为php构建扩展
我将为PHP5.3.x构建一个扩展 当我在没有vc++库的情况下构建时,一切都正常C++ 与php zend libs和c+冲突+;libs(ctime)为php构建扩展,c++,php,C++,Php,我将为PHP5.3.x构建一个扩展 当我在没有vc++库的情况下构建时,一切都正常 error C2039: 'clock_t' : is not a member of '`global namespace'' error C2873: 'clock_t' : symbol cannot be used in a using-declaration error C2039: 'asctime' : is not a member of '`global namespace'' error C2
error C2039: 'clock_t' : is not a member of '`global namespace''
error C2873: 'clock_t' : symbol cannot be used in a using-declaration
error C2039: 'asctime' : is not a member of '`global namespace''
error C2873: 'asctime' : symbol cannot be used in a using-declaration
而且
我刚刚包括了这个错误。
我知道这个问题来自于PHP zend引擎所需属性中的include头文件,但我不知道如何解决这个问题。
谢谢更改包含路径,例如:
#include "C:\\Program Files\\Microsoft Visual Studio 9.0\\VC\\include\time.h"
你能分享一些代码吗?包括什么?你是如何使用时钟和时间的?等