Questions tagged [mingw]

MinGW, a contraction of "Minimalist GNU for Windows", is a minimalist development environment for native Microsoft Windows applications.

MinGW provides a complete open source programming tool set which is suitable for the development of native MS-Windows applications, and which do not depend on any third-party C runtime DLLs. (It does depend on a number of DLLs provided by Microsoft, as components of the operating system; most notable among these is MSVCRT.DLL, the Microsoft C runtime library. Additionally, threaded applications must ship with a freely distributable thread support DLL, provided as part of MinGW itself).

MinGW compilers provide access to the functionality of the Microsoft C runtime and some language-specific runtimes. MinGW, being minimalist, does not, and never will, attempt to provide a POSIX runtime environment for POSIX application deployment on MS-Windows. If you want POSIX application deployment on this platform, please consider Cygwin instead.

Primarily intended for use by developers working on the native MS-Windows platform, but also available for cross-hosted use (see note below -- you may need to follow the "read more" link to see it), MinGW includes:

A port of the GNU Compiler Collection (GCC), including C, C++, ADA and Fortran compilers and GNU Binutils for Windows (assembler, linker, archive manager).

A graphical and a command-line installer for MinGW and MSYS deployment on MS-Windows, MSYS, a contraction of "Minimal SYStem", is a Bourne Shell command line interpreter system. Offered as an alternative to Microsoft's cmd.exe, this provides a general purpose command-line environment, which is particularly suited to use with MinGW, for porting of many open source applications to the MS-Windows platform; a light-weight fork of Cygwin-1.3, it includes a small selection of Unix tools, chosen to facilitate that objective, and using it is a necessary prerequisite for building mingwPORTs.

mingwPORTs are user contributed additions to the MinGW software collection. Rather than providing these "add-ons" as precompiled binary packages, they are supplied in the form of interactive Bourne shell scripts, which guide the end user through the process of automatically downloading and patching original source code, then building and installing it. Users who wish to build any application from a mingwPORT must first install both MinGW and MSYS.

160 questions
102
votes
2 answers

What is Git Bash for Windows anyway?

I have happily been using Git and Git Bash from https://git-scm.com/. There is a page with more information here: https://git-for-windows.github.io/. Yesterday I ran into a problem with rsync, and I started digging deeper into Git Bash for Windows.…
geneorama
  • 1,400
49
votes
7 answers

MinGW Bash profile

I use MinGW on Windows 7. I have a .bashrc with some aliases in it. The file is in my home folder which is where MinGW starts me in, so it also believes that the folder is my home folder. It does not load the contents of the folder automatically. I…
KurToMe
  • 493
33
votes
7 answers

make: Interrupt/Exception caught

I'm using Make from the MinGW distribution. It has always worked, but recently I've gotten the following error: > make clean make: Interrupt/Exception caught (code = 0xc0000005, addr = 0x0040b0ac) And the respective part looks like this: clean: …
orlp
  • 1,577
28
votes
5 answers

bash - remove all directories (and contents) but not files in pwd

I'd like to remove all directories from the pwd but leave the files in the pwd alone. If the content of my pwd is: mydir1 mydir2 myfile1 myfile2 then I'd like to be left with just myfile1 myfile2 I assume that I need to use rm -r -i Am I…
Lee
  • 909
19
votes
4 answers

MinGW installer not working with proxy

Situation I want to install minGW and msys on a work pc, but I'm behind a proxy. The proxy settings are configured to auto detect in both internet explorer and firefox. The proxy is a http proxy on port 80 that requires authentification. I also have…
youR.Fate
  • 564
14
votes
3 answers

MINGW64 bash: wget: command not found

I am using git with MINGW64(install by git) on windows. MINGW64 is great, but lack of some command which rarely use on windows. Today, I just have a whim to figure out how to use wget in it. I found this mingw-w64/wiki2/MSYS, it says The…
Mithril
  • 937
13
votes
7 answers

Start MSYS in current folder

I have MinGW/MSYS on Windows, and can't figure how to start MSYS shell in folder I'm working in. For example, in Windows console I'm working in folder c:\temp and if I call MSYS (msys.bat) it opens new console window in some fixed location,…
zetah
  • 704
13
votes
3 answers

Install GCC in Git for Windows bash environment

I have Git for Windows installed on a Windows 7 machine (no, sadly I can't switch to W10 on this particular machine). This comes with a bash environment that uses MinGW-64 but only includes some binaries. I'd like to add more, such as GCC. It seems…
Toby
  • 876
12
votes
3 answers

accessing the mapped network drives using mingw shell

How to access the mapped network drives from the mingw shell? When I try cd y: or cd /y or y: All I get is No such file or directory or sh.exe y:: command not found. I am able to access the same mapped Y: drive using cmd. I would like to know how to…
yasouser
  • 313
11
votes
2 answers

Editor for 'git bash' on Windows (editor for mingw/msys+mintty)?

I am using 'git bash' for Windows (from 'git for Windows') which in turn consists of mingw+msys and a mintty. This mingw installation contains a 'vi' editor which works in the mintty. Good. Question: Are there any other editors available which run…
Johannes Overmann
  • 911
  • 3
  • 9
  • 19
11
votes
3 answers

How can I change my MinGW/MSYS + mintty home directory?

I use mintty as my console emulator for MinGW/MSYS. Recently (I'm not certain exactly when), the home directory used by this combination changed from my Windows user folder (/c/Users//) to /home//, which is causing minor havoc for me. How…
Ben Blank
  • 1,094
11
votes
2 answers

Unable to rsync to another volume with Git Bash

I use git bash on a windows machine: version 2.7.2 (32-bit version) of Git for Windows built on 2016-02-23 available from https://git-scm.com. Within bash I can copy a directory from /c/ to /e/ (a USB thumb drive). However, I get errors when I try…
geneorama
  • 1,400
10
votes
2 answers

I can't see MSYS home directory under Windows 7's file explorer

I'm using MSYS (MinGW UNIX environment) to get a working UNIX-like environment on my Windows 7 workstation. When I start the MinGW shell, I can see that my home directory is /home/oded.a, and running mount shows me that it comes from msys\1.0 under…
Guss
  • 1,171
10
votes
5 answers

How to install clang-format on MinGW (Windows)?

I tried searching with pacman -Ss for clang-format, git-clang-format, etc, but I'm not having any luck. However, I have seen some references to it on some other websites, implying it may exist (or have existed) somewhere.
10
votes
2 answers

MSYS2 and "At least one valid and enabled repository required for this action to succeed."

I have separate MSYS2 32-bit and 64-bit installed on a Windows 8.1 test machine. MSYS2 was acquired from the MinGW-64 download page. Each installation has developer tools installed like GCC, Git, GDB, Make, etc. I'm having trouble updating MSYS2.…
jww
  • 12,722
1
2 3
10 11