我使用php为我的php代码创建一个扩展,当我试图编译main.cpp文件的简单结构时,我得到的error.this是编译错误:
main.cpp:15:5: error: ‘PHPCPP_EXPORT’ does not name a type
PHPCPP_EXPORT void *get_module() 这是我试图编译的代码:
extern "C" {
int main(){}
PHPCPP_EXPORT void *get_module()
{
static Php::Extension myExt("myExt", "0.9.3.20");
return myExt;
}
}发布于 2016-05-10 06:46:50
您错过了#include <phpcpp.h>命令。
https://stackoverflow.com/questions/37130827
复制相似问题