PHP embed : zend_config.h: No such file or directory

General discussion on PHP
Post Reply
etie2837
Posts: 1
Joined: Thu Jun 16, 2016 2:30 pm

PHP embed : zend_config.h: No such file or directory

Post by etie2837 » Thu Jun 16, 2016 2:37 pm

Hi.

I'm trying to compile this simple code

Code: Select all

#include <sapi/embed/php_embed.h>

int main(int argc, char *argv[])
{
	PHP_EMBED_START_BLOCK(argc, argv)
	PHP_EMBED_END_BLOCK()

	return 0;
}

with this commandline

gcc -v -o test test.c -I/php-embed/php-7.0.7 -I/php-embed/php-7.0.7/main -I/php-embed/php-7.0.7/Zend -I/php-embed/php-7.0.7/TSRM -L/php-embed/lib -lphp7

But I have this error

Code: Select all

/php-embed/php-7.0.7/Zend/zend_portability.h:48:26: fatal error: zend_config.h: No such file or directory
 # include <zend_config.h>
I've looked for a zend_config.h into the src code but there is not such file.
Does anybody could help me

thank's

Post Reply