0

我要为 PHP 5.3.x 构建一个扩展

当我在没有 vc++ lib 的情况下构建时一切正常。

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 引擎所需的属性中包含头文件,但我不知道如何解决这个问题。谢谢

4

1 回答 1

0

更改包含路径,例如:

#include "C:\\Program Files\\Microsoft Visual Studio 9.0\\VC\\include\time.h"
于 2013-03-14T09:22:57.970 回答