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

[email protected] (Atilla İlhan KARTAL)
Newsgroups php.internals.win
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.