Re: [INTERNALS-WIN] Developing PHP extensions on Windows with VC++, linking problems

From: Date: Wed, 20 May 2009 07:52:03 +0000
Subject: Re: [INTERNALS-WIN] Developing PHP extensions on Windows with VC++, linking problems
References: 1 2 3 4 5 6 7 8 9 10  Groups: php.internals.win 
Request: Send a blank email to internals-win+get-494@lists.php.net to get a copy of this message
Hi 2009/5/20 Eugenio Tacchini <eugenio@favoriti.it>: > At 10.17 11/05/2009 +0200, Kalle Sommer Nielsen wrote: >>Hi >> >>2009/5/11 Eugenio Tacchini <eugenio@favoriti.it>: >>> At 08.26 11/05/2009 +0200, Kalle Sommer Nielsen wrote: >>>> >>>>Thats because your header file does not define the module pointer, >>>>checkout any extension and you should see something like: >>>> >>>>extern zend_module_entry <myext>_module_entry; >>>>#define phpext_<myext>_ptr &<myext>_module_entry >>> >>> Hello Kalle, >>> thanks for your reply. >>> My header file, stdafx.h, just contains these lines: >> >>This is defined in the php_<myext>.h file, so your php_<myext>.h file >>may looks like: > > Thanks again Kalle! > I don't have any php_my_extension.h files, I need to create it? I just have > a stdafx.h file. > Sorry if the question is trivial... Yes you need a php_<myext>.h file (as when you run configure, main/internal_functions.c) will be populated with an #include to each of the extension header files, and it must be named like that. > > Regards, > > Eugenio > > > -- > Windows Internals Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- Kalle Sommer Nielsen kalle@php.net

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