Error1 fatal error C1017: invalid integer constant expression in tsrm_config_common.h

From: Date: Fri, 16 Oct 2009 13:55:41 +0000
Subject: Error1 fatal error C1017: invalid integer constant expression in tsrm_config_common.h
Groups: php.internals.win 
Request: Send a blank email to internals-win+get-636@lists.php.net to get a copy of this message
Hi everybody; First sorry my english. I have a problem. I did compiled php with Visual Studio 2008 compile Failuried with this exception : "Error 1 fatal error C1017: invalid integer constant expression c:\phpdev\php-5.3.0\tsrm\tsrm_config_common.h 5 php_hello" Where is the problem? Thanks; Atilla İlhan KARTAL Web Application & Software Architect Turkey Republic My Code hello.c #ifdef HAVE_CONFIG_H #include "config.h" #endif #include "php.h" #include "php_hello.h" static function_entry hello_functions[] = { PHP_FE(hello_world, NULL) {NULL, NULL, NULL} }; zend_module_entry hello_module_entry = { #if ZEND_MODULE_API_NO >= 20010901 STANDARD_MODULE_HEADER, #endif PHP_HELLO_WORLD_EXTNAME, hello_functions, NULL, NULL, NULL, NULL, NULL, #if ZEND_MODULE_API_NO >= 20010901 PHP_HELLO_WORLD_VERSION, #endif STANDARD_MODULE_PROPERTIES }; #ifdef COMPILE_DL_HELLO ZEND_GET_MODULE(hello) #endif PHP_FUNCTION(hello_world) { RETURN_STRING("Hello World", 1); } php_hello.h #ifndef PHP_HELLO_H #define PHP_HELLO_H 1 #define PHP_HELLO_WORLD_VERSION "1.0" #define PHP_HELLO_WORLD_EXTNAME "hello" PHP_FUNCTION(hello_world); extern zend_module_entry hello_module_entry; #define phpext_hello_ptr &hello_module_entry #endif My Included Directories "C:\PHPDEV\php-5.3.0"; "C:\PHPDEV\php-5.3.0\Zend"; "C:\PHPDEV\php-5.3.0\win32"; "C:\PHPDEV\php-5.3.0\TSRM"; "C:\PHPDEV\php-5.3.0\main" And My Preprocessor Definitions ZEND_DEBUG=0; COMPILE_DL_MYEXT; ZTS=1; ZEND_WIN32; PHP_WIN32; MYEXT __________ Information from ESET Smart Security, version of virus signature database 4501 (20091012) __________ The message was checked by ESET Smart Security. http://www.eset.com __________ Information from ESET Smart Security, version of virus signature database 4501 (20091012) __________ The message was checked by ESET Smart Security. http://www.eset.com

« previous php.internals.win (#636) next »