How do I implement windows support for yac?

Source: Internet
Author: User
Tags vc9 windows support zts
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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.