Cygwin and MinGW

Source: Internet
Author: User

These days they have been followed,

In fact, I don't want to install vs to write some small things.

Originally wanted to write a small exe, so ran to the bin of the VS to the CL and link out, but found that CL also to configure what, also not very clear directly on the two EXE and some DLLs can be used. Toss two,

Link can be used, but CL is not available. I never saw anyone do that, so I gave up.

Then find window compile Win32 C, found that there is GCC, find MinGW, and Cygwin, toss compared a good freshman will, just found.

MINGGW The biggest difference is that the bin compiled into a CMD can run independently,

And Cygwin, which is basically CMD and relies on its own DLL can all be used.

It also offers something like Apache.

So you think I'm going to use that?


---------compile a simple exe---------

MinGW is compiled by GCC and can be run independently in CMD.

Using Cygwin's GCC compiled, cmd run, prompt, need to cygwin.dll, look at the site, said no option also did not consider to support, if need to install Mingw-gcc-core, originally this thing in Cygwin below is put to

$ which I686-PC-MINGW32-GCC
/usr/bin/i686-pc-mingw32-gcc

This time using/I686-PC-MINGW32-GCC compiled EXE can also be independent.

Therefore, if you do not want to rely on DLLs, you can use this to compile.


------------------like Git-window----------Such tools are also compiled using MinGW, and some of its output input cmd can not be satisfied, so, using a kind of called Mysys things to operate. Well, since if, Cygwin are provided directly, there is no need to install it.


There is also gvim, in fact it also provides VIM, and then see it started using Bash, then, for window's right-click menu, open a file using Vim to edit, it is very simple.

such as bash-c "Vi/cygdrive/c/users/administrator/desktop/d.cpp" So, Gvim can also delete, use it?




It's just that the goods are a little slow indeed.

It's not convenient to use a Linux virtual machine to get things done.


Toss it.

Cygwin and MinGW

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.