i want create a extension for php and i want install php-cpp
http://www.php-cpp.com/documentation/install
show error:
................
zend/constantimpl.h:185:38: error: ‘zend_constant’ has no member named ‘name_len’
zend/constantimpl.h:185:38: error: ‘zend_constant’ has no member named ‘name_len’
zend/constantimpl.h:188:68: error: cannot convert ‘zend_string* {aka _zend_string*}’ to ‘char*’ for argument ‘1’ to ‘char* strncpy(char*, const char*, size_t)’
zend/constantimpl.h:189:62: error: cannot convert ‘zend_string* {aka _zend_string*}’ to ‘char*’ for argument ‘1’ to ‘char* strncpy(char*, const char*, size_t)’
zend/constantimpl.h:190:77: error: cannot convert ‘zend_string* {aka _zend_string*}’ to ‘char*’ for argument ‘1’ to ‘char* strncpy(char*, const char*, size_t)’
zend/constantimpl.h:195:23: error: ‘zend_constant’ has no member named ‘name_len’
zend/constantimpl.h:196:60: error: ‘zend_constant’ has no member named ‘name_len’
make: *** [shared/zend/base.o] Error 1
......
for install this need to upgrade our g++ compiler to version 4.8.x above.
how do "upgrade our g++ compiler to version 4.8.x above" in centos system ?