Development of Linux in Windows

Source: Internet
Author: User

We have been using Si + virtual machines for development.

The best way to achieve this is that Si uses a Huawei configuration and Virtual Machine sharing. When the machine is changed, it will cause a lot of trouble.

In addition to Si, you can also use QT for programming, and the search and interface are also very beautiful.

 

However, these methods have major problems in file version control and compilation.

Therefore, the best configuration should be netbeans + cgwin. Netbeans can be downloaded at will. For detailed configuration, see:

Download C/C ++ support


If you have not installed netbeans 6.0 IDE, go to the netbeans ide 6.0 download page and download the IDE version that contains C/C ++ support. If you have installed netbeans ide 6.0 without C/C ++ support, complete these steps to add C/C ++ support to the IDE.

  1. If the network uses a proxy, select "Tools"> "options" from the main menu, select "manual Proxy Settings", enter the HTTP proxy and port of the proxy, and click "OK ".
  2. Select Tools> plug-ins from the main menu ".
  3. In the plug-in dialog box, click the available plug-ins tab and scroll to the C/C ++ category.
  4. Select the "C/C ++" check box.
  5. Click Install ".

    Install netbeans ideProgram.

  6. In the netbeans ide installer, click "Next ".
  7. Read the license agreement, select "I accept all terms in the license agreement", and click "Next ".
  8. Click Install ".
  9. After the installation is complete, select "restart ide now" or "restart ide later", and then click "finish ".



Install and set compilers and tools

The netbeans C/C ++ package requires the C compiler, C ++ compiler,MakeUtilities andGDBDebugger.

Windows

Tested, the netbeans C/C ++ package can be used with the following compilers and tools:

    • Cygwin 1.5.21
    • Cygwin gcc-core (C compiler) 3.4.x
    • Cygwin gcc-C ++ (C ++ compiler) 3.4.x
    • Cygwin GDB (GNU Debugger) 6.5.50
    • Cygwin make 3.80

If cygwin GNU Compiler, GNUMakeAndGDBThe debugger and correctly set the paths in the PATH variable to find them. Make sure that the correct version is used. If the correct version is installed, you do not need to set it again.

Check the cygwin compiler and tool Version:

  1. check the cygwin version, enter

     cygcheck-C cygwin 
  2. Check the compiler,MakeAndGDBType:
    GCC -- version g ++ -- version make -- version GDB -- version

Install the GNU Compiler,MakeAndGDBDebugger:

  1. Click "install or update now!" in the middle of the page! "Icon download cygwinSetup.exeProgram.
  2. RunSetup.exeProgram. Accept the default settings until you go to the "select your Internet connection" page. Select the most appropriate option on this page. Click "Next ".
  3. On the "choose a download site" Page, select a site for convenient download. Click "Next ".
  4. On the "Select Packages" Page, select the software package to download. Click "+" next to "devel" to expand the development tool category. You may need to adjust the window size so that you can view more content at a time.
  5. Click the "Skip" tab next to each software package to be downloaded to select it. Select at least "gcc-core: C compiler", "gcc-G ++: C ++ compiler", "GDB: the GNU Debugger", and "make: the GNU version of The 'make' utility ".
  6. Now add the compiler directory to the PATH variable:
    1. Open Control Panel (Start> set> Control Panel), and double-click the system program.
    2. Select the "advanced" tab and click "environment variables ".
    3. In the "environment variables" dialog box, on the "System variables" Panel, select "path"Variable, and then click "edit ".
    4. SetCygwin-directory\ BinDirectory pathPathVariable, and then click OK ". By default,Cygwin-directoryIsC: \ cygwin. Directory names must be separated by semicolons.
    5. In the environment variables and System Properties dialog boxes, click OK ".

 

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.