php 编译生成动态库出现: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token {
出现一下错误可能是:php_hello.h头文件缺少“;”分号。PHP_FUNCTION(hello);
/www/wwwroot/php/php-7.1.33/ext/hello/hello.c: In function ‘zif_hwsdk_encryption’:
/www/wwwroot/php/php-7.1.33/ext/hello/hello.c:35:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘static’
static int le_hello; ^
/www/wwwroot/php/php-7.1.33/ext/hello/hello.c:55:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
{
/www/wwwroot/php/php-7.1.33/ext/hello/hello.c:90:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
{
/www/wwwroot/php/php-7.1.33/ext/hello/hello.c:101:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
{
^
/www/wwwroot/php/php-7.1.33/ext/hello/hello.c:113:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
{
^
/www/wwwroot/php/php-7.1.33/ext/hello/hello.c:125:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
{
^
/www/wwwroot/php/php-7.1.33/ext/hello/hello.c:133:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
{
^
/www/wwwroot/php/php-7.1.33/ext/hello/hello.c:148:1: error: parameter ‘hello_functions’ is initialized