Questions tagged [mingw32]

MinGW(32), a contraction of minimalist GNU for Windows, is a minimalist development environment for native Microsoft Windows applications.

MinGW(32), a contraction of minimalist GNU for Windows, is a minimalist development environment for native Microsoft Windows applications.

MinGW(32) (or mingw32) is the old name of the project and the name is now MinGW.

Use of this tag

Tag mingw should be preferred over this tag, mingw32.

790 questions
466
votes
25 answers

Git Bash is extremely slow on Windows 7 x64

I've been using Git on both Windows and Ubuntu during the development of a small project, frequently flipping back and forth between the two. The issue is that Git Bash consistently becomes slow. When I say slow, I mean that running cd takes…
Gemini14
  • 6,246
  • 4
  • 28
  • 32
181
votes
12 answers

Change the location of the ~ directory in a Windows install of Git Bash

I am not even sure I am asking the right question. Let me explain my situation: This is about Git on Windows 7. My company sets up the Windows user directory on a network drive, not on the local hard drive (for backup and other purposes beyond the…
PEWColina
  • 2,014
  • 2
  • 13
  • 16
61
votes
12 answers

ld.exe: cannot open output file ... : Permission denied

I recently installed CodeBlocks with mingw32 on Windows 7 Ultimate 32bit in order to dust off my c skills, but this problem has me somewhat stumped. I decided to fire off a short Fibonacci generator to make sure my setup was working, but I ran into…
44
votes
9 answers

msys path conversion (or cygpath for msys?)

I need to pass /DEF:c:\filepath\myLib.def" command line option from a bash script to MS compiler/linker. The path is generated as part of build process by a bash script. Basically, the argument that my script passes…
Pavel P
  • 15,789
  • 11
  • 79
  • 128
34
votes
2 answers

Automake error './ltmain.sh' not found

I've installed mingw and msys by using mingw-get-setup.exe. I've also installed Autotools(autoconf, automake,m4,libtool) into C:\/opt/autotools. When I run automake, the following error always occurs: configure.ac:11: error: required file…
user1345414
  • 3,745
  • 9
  • 36
  • 56
34
votes
4 answers

Setting colors for ls in git bash on windows

I have installed GitHub for Windows recently and am using the git bash prompt - the one thing that is bugging me right now is when I type LS all directories are listed in blue. How do I change my git bash shell so that when I type LS the directories…
Mark Pearl
  • 7,573
  • 10
  • 47
  • 57
30
votes
4 answers

MinGW-w32 vs. MinGW

What's the difference between the MinGW project and the 32-bit portion of the MinGW-w64 project? Does the 32-bit portion of MinGW-w64 have any relation to x64 at all? It seems like their compilers do the exact same things...
user541686
  • 205,094
  • 128
  • 528
  • 886
26
votes
7 answers

How to compile on multiple cores using mingw inside QTCreator

I have a quad-core i7 CPU on my windows desktop. I am trying to get mingw32-make to compile using as many core as possible. I have added -j8 into the "Make Arguments" fields under Build Settings->Build Steps. mingw32-make seems to completely ignore…
Stephen Cheng
  • 964
  • 2
  • 11
  • 24
25
votes
5 answers

Undefined reference to WinMain (C++ MinGW)

Currently, I am trying to make a Windows application using C++. For compiling my program I use MinGW (GCC). But as soon as I use int WINAPI wWinMain(HINSTANCE hInstance, HINSTANCE, PWSTR pCmdLine, int nCmdShow) instead of int main() the compiler…
wuzipu
  • 253
  • 1
  • 3
  • 4
25
votes
2 answers

Where is vimrc or vim profile for github's mingw32 shell on a Windows machine?

Cygwin has a home directory where I can store a .vimrc file to set up syntax highlighting. I know on linux machines this file is usually in a home directory and that it can be stored globally (although I haven't figure out how the global thing…
laserface
  • 449
  • 1
  • 4
  • 12
24
votes
4 answers

undefined reference to `getline' in c

I am learning to use getline in C programming and tried the codes from http://crasseux.com/books/ctutorial/getline.html #include #include #include int main(int atgc, char *argv[]) { int bytes_read = 1; int…
Eric Cartman
  • 251
  • 1
  • 2
  • 4
21
votes
3 answers

how to generate pdb files while building library using mingw?

I am cross compiling from linux to windows using the mingw32 tools. I need to generate pdb files for debugging on windows. Is there a way to do this?
Manoj Hanamshet
  • 339
  • 1
  • 2
  • 8
20
votes
4 answers

How can I change a specific font color in git?

I'm looking to change the 'red' font color in git to something that is more towards pink. I tend to keep my monitors pretty dim, and whenever I look through diffs, the red font on the black background is hard to read. So, is there a way to specify…
camerb
  • 247
  • 2
  • 7
20
votes
3 answers

Multiple "could not be resolved" problems using Eclipse with minGW

I have recently installed (the latest builds of) 'Eclipse IDE for C/C++ Developers' and minGW (4.8.1) to help me to get back into C++ after a long time away. I have added -std=c++11 to Other flags at C/C++ Build/Settings/Tool Settings/GCC C++…
Jim
  • 423
  • 1
  • 4
  • 13
19
votes
1 answer

Double to int implicit conversion in mingw32

I can't explain the behaviour of the following program (compiled with gcc on mingw 32 bits). I'm aware of the possible precision loss when implicitly converting from double to int, but I would expect the two cases to give the same output since it is…
Étienne
  • 4,773
  • 2
  • 33
  • 58
1
2 3
52 53