Re: [INTERNALS-WIN] Developing PHP extensions on Windows with VC++, linking problems
[email protected] (Kalle Sommer Nielsen)
| Newsgroups | php.internals.win |
|---|---|
| Message-ID | <[email protected]> |
Hi 2009/5/20 Eugenio Tacchini <[email protected]>: > At 10.17 11/05/2009 +0200, Kalle Sommer Nielsen wrote: >>Hi >> >>2009/5/11 Eugenio Tacchini <[email protected]>: >>> 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 [email protected]