Build Linux development environment on Windows __linux

Source: Internet
Author: User

The development environment described here refers primarily to the use of GCC (GNU Compiler Collection) on Windows for development, and depending on the requirements, we have the following options:

1. devc++

This is a MINGW integrated development environment (IDE) for C + + beginners who can use it to write code that conforms to the standard C + + (98) specification and experience some of GCC's features.

Devc++ is very compact, developed by bloodshed Software, belongs to free Software.
The latest version of Devc++ is: devc++ 5.0 beta9.2 (4.9.9.2) with MINGW/GCC 3.4.2
Devc++ 's official site is: http://www.bloodshed.net

2. MinGW

MinGW, minimalist GNU for Windows, is a porting of the GNU toolset (mainly GCC) on Windows, through which we can use GCC to develop WIN32 programs.

MinGW is based on the command line, and for beginners, using the command line to develop the details helps to understand it. However, if you are not accustomed to command line, you can also choose the IDE. The devc++ mentioned above is a GUI package for MinGW (the interface is developed with Delphi, the MinGW Toolkit can be found under the devc++ installation directory), and there is also a section named MinGW Developer IDE, It completely emulated the VC6 interface and should be able to get started quickly for friends who are familiar with VC6.

Many cross-platform open source software on Windows is MinGW as a compilation tool, such as the famous MPlayer.

MinGW's official site is: http://www.mingw.org

3. Cygwin

Cygwin, developed by Cygnus, is a behemoth compared to MinGW because it attempts to build the entire Linux platform on Windows. The Cygwin consists of two parts, first cygwin1.dll, a simulation of the Linux API, followed by a Linux toolset, with nearly all the common tools such as GCC, VI, and grep. So, choosing Cygwin, we can not only use GCC, but also learn Linux's command tools.

Cygwin's official site is: http://www.cygwin.com

The Cygwin installation and use methods are:
1 to the official site download Setup.exe program;
2 run Setup.exe, according to their own needs, you can choose to download and install from the network or download only do not install. The Cygwin default installation does not include the GCC tool, so you must set it yourself. When you go to the Select Packages Step, expand Devel Category, and you can see that the GCC package status is skip, click it, skip will switch to the latest version number, indicating that we will install it. If we want to install all the package, you can click the Default tab behind category and the text will become install. Edit Tool VI is not installed by default, it is located in the Editors category directory. How to determine which category the tools we are installing are located under. By opening the Setup.ini file under the Cygwin download directory (similar to Ftp%3a%2f%2fcygwin.osuosl.org%2fpub%2fcygwin), look for @ tool_name (Note: There is a space behind the @), For example, GCC should look for @ GCC, where the description contains the category that the tool belongs to. Cygwin is very large, if all installed, I heard that it takes about 4G of space.
3 after the installation, the desktop will appear a shortcut, run it can enter the virtual Linux work environment. Alternatively, we can add the path of the bin folder in the Cygwin installation directory to the system PATH environment variable, so that the command tools under Cygwin, such as running g++, can be used directly in the console.

4) Telnet

The

Telnet to a Linux host remotely by remote, which is different from the three methods mentioned earlier, because it is actually using the Linux system directly. When multiple members of the project team are required to develop Linux, we can build a Linux workstation and then develop members to work on the workstation by Telnet. This is a good choice for most developers who use Windows to occasionally use Linux. The Telnet tool can use stem or other similar tools.

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.