A few days ago @ laruence said yac needed windows support .. I vaguely remember that he was shouting two or two months ago .. the door couldn't bear to see him grow awkwardly, so he took over. as a contemporary literary youth .. I have not developed windows for more than a year .. I have never written c (php extension) on windows ).. it has been developed on Linux for a long time.
A few days ago @ laruence said yac needed windows support .. I vaguely remember that he was shouting two or two months ago .. the door couldn't bear to see him grow awkwardly, so he took over. as a contemporary literary youth .. I have not developed windows for more than a year .. I have never written c (php extension) on windows ).. it has been developed on Linux for a long time.
A few days ago @ laruence said yac needed windows support .. I vaguely remember that he was shouting two or two months ago .. the door couldn't bear to see him grow awkwardly, so he took over. as a contemporary literary youth .. I have not developed windows for more than a year .. I have never written c (php extension) on windows ).. I have been developing on Linux for a long time .. so .. in this article, we will talk about some issues that should be paid attention to during extended development in windows, from failure to passing the test .. if some of the things mentioned below can be google to me, they will be replaced by links directly. here we go. a> windows environment .. I am running a VM .. for specific environment configuration, see the link. There are several points to note. You need to understand the meaning of ZTS and ETS, and use the correct method to configure VS environment variables and use the correct package. For example, my environment is VS2008, I used the php-5.3.8-nts-Win32-VC9-x86 package when developing (non-thread-safe), so I chose this package .. remember to set the PATH to get twice the result with half the effort. B> In vs2008, there are several Value configuration attributes to be adjusted in properties. In general, it is best to use MFC to configure attributes in a static library.-> C/C ++-> pre-processor-> pre-processing definition remember to fill in the definition here, for example, in yac, I set the following parameters: PHP_YAC_EXPORTS ZEND_DEBUG = 0 COMPILE_DL_YAC ZEND_WIN32 PHP_WIN32 HAVE_TEST = 1. You need to modify the parameters as needed, if it is ZTS, remember to add configuration properties here-> C/C ++-> code generation-> Runtime Library, which needs to be changed to multi-thread DLL (/MD) configure properties-> C/C ++-> advanced-> compile here to compile c code (/TC) configure properties-> linker-> input-> Add dependencies in yac. I set it as follows: "C: \ php \ php-5.3.25-nts-Win32-VC9-x86 \ dev \ php5.lib "" Advapi32.lib "c> coding and coding .. there is nothing to say here .. you must write at least one dll that can be generated with zero errors .. otherwise, you cannot proceed to the next step .. d> to focus on .. debugging: I couldn't find out how to debug php extensions in windows. It was actually very simple, just because I didn't have the experience of developing c in windows. First of all, we need to [...]
Original article address: How do I support yac in windows? Thanks for sharing with me.