Vs2010 compile notepad ++ source code (reproduced)

Source: Internet
Author: User

According to the operation steps of the article, it has been compiled successfully. The reprinted content is as follows:

 

1. Download the source code by yourself.

2. decompress:



The source code of notepad ++ is in the powereditor folder. Scintilla is a plug-in that will be used later in powereditor.

3. Open the scintilla folder first. See



Then open vcbuild:


Use VC ++ 6.0 to compile scilexer. DSP.

The final goal is to get a. dll file (in scintilla \ bin) (Do you know you have downloaded it online ?)


4. Compile notepad ++:

Go to this directory: powereditor \ visual.net.

There is:

This can be opened using vs2010.

A Conversion prompt is displayed. Because. vcproj is the vs2005 project name,. vcxproj is the vs2010 project name.

The conversion is successful. (It's okay if there is no error. Warning is okay ).

Then you can start compiling: do the following.

1) Right-click the project name.



Point Property (R ):



Click "Configuration Manager" and select "Unicode release ".



OK. Just modify it.

1) Open the property manager:

You can see the figure below.



Click here:



Click no_ms shit on the right:



Click "attribute"



Find as shown in



Select "edit" to go:



Just change it to the same one.

3) start compiling:



If not. Error c2220: Warning treated as error-No 'object' file generated. You can follow the steps below to modify the file:

Select project-> properties-> C/C ++-> General-> warning level, and change the alarm level to 0.

 

In the above figure, you should first modify it to Unicode debug compiling. If the error does not exist at this time, you can use Unicode release to compile it. If not, save the project and open it again. It is absolutely acceptable to repeat the above steps several times.


5. Run:

After compilation is successful, it will be available in the \ powereditor \ bin directory



Clicking "run" will prompt that the dynamic link library failed.

Copy the scilexer. dll that has been compiled successfully. In the same directory.



Now, you can continue to learn the source code.


Related Article

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.