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
7
votes
2 answers

C++ template class behaves differently for different compilers

I am working with templates in C++. Is there any difference in using templates and friend class when compiled with MSVC compiler and when using Mingw gcc compiler. My code successfully compiles and gives the desired output when compiled with MSVC…
7
votes
5 answers

How do I get COMMIT_EDITMSG to open from the correct location?

I'm new to GIT. I downloaded GIT for Windows from a GitHub link a few days ago. I'm using the command line tool MinGW32. I'm not comfortable with the default editor so I've been trying to set up my favourite editor. I followed the instructions here…
toxalot
  • 11,260
  • 6
  • 35
  • 58
6
votes
2 answers

can mingw build a visual studio-2010 project?

I have a visual studio-2010 project which contains lots of source files and header files. Now I need to autobuild this project under the latest Debian GNU/Linux. So I choose to use MinGW. But I need a makefile of this visual studio project. Is there…
machinarium
  • 631
  • 6
  • 17
6
votes
3 answers

strange problems with C++ exceptions with mingw

I have encountered a strange problems with exceptions using mingw and managed to cut it down to the following example: #include #include #include using namespace std; void test(int a) { if (a < 0) { throw…
Michal Kaut
  • 1,421
  • 1
  • 14
  • 25
6
votes
3 answers

Does anyone have a working GMP + MINGW installation?

I've spent days and days trying to install GMP library on my MINGW windows installation. I completed the installation process of both dozens of times, followed any single guide on the internet but I couldn't manage to get things working. So, I'm…
Matteo Monti
  • 8,362
  • 19
  • 68
  • 114
6
votes
0 answers

How do I use CMake to build the ECCODES package using MinGW?

I'm trying to build some software from ECMWF called ECCODES. It builds fine on GNU/Linux. It builds fine on Mac OS X. It builds fine on Windows/Cygwin. Unfortunately (Ugh!!), I must use Windows and I can't use Cygwin. I have to use something like…
gknauth
  • 2,310
  • 2
  • 29
  • 44
6
votes
1 answer

undefined reference to `libintl_gettext' with MinGW/MSYS and CMake

I am trying to add gettext to a C++ project. It compiles and runs fine under Linux, but I get a linker error with MinGW32 in Windows 7 64 bit. I am compiling with cmake -G "MSYS Makefiles" .., because MinGW doesn't work for soe nebulous reason. I…
GunChleoc
  • 107
  • 1
  • 7
6
votes
0 answers

No module named msvccompiler in numpy.distutils; trying from distutils and raise SystemExit, "error: " + str(msg)

Could somebody save me?? When I was compiling Python with some c code, using the MinGw32, I was stacked by the following problems. D:\java_workspace\Dilrechete\ddst\video\view_cv.py:73: FutureWarning: comparison to `None` will result in an…
samlong
  • 63
  • 1
  • 5
6
votes
3 answers

Error while building OpenCV :: MonitorFromRect was not declared in this scope

I was trying to build OpenCV version 2.4.8 to use it with CodeBlocks and MinGw. I followed the instructions from here. But I got the following error. I have no clue how to solve it. I didn't find anything useful by searching in the net. This is also…
Dipto
  • 2,720
  • 2
  • 22
  • 42
6
votes
1 answer

libtool and Windows DLLs

I have an difficult relationship with the GNU autotools, especially libtool. But because they kick ass when it comes to portability and cross compilation I started using them again. Unfortunately I can't get libtool to build proper windows DLLs.…
rioki
  • 5,988
  • 5
  • 32
  • 55
6
votes
2 answers

Haskell SDL: Can't find mingw32.dll

I finally made it to install Haskell SDL bindings on Windows. Using this: > $env:Path += ";C:\SDL;C:\SDL\bin;C:\SDL\include;C:\SDL\lib" > cabal install SDL --extra-include-dirs="C:\SDL\include" --extra-lib-dirs="C:\SDL\lib" This works, as long as…
Lanbo
  • 15,118
  • 16
  • 70
  • 147
6
votes
2 answers

Using MinGW to compile C code, but error liblto_plugin-0.dll not found?

I'm using MinGW to compile C code. but when I give command "make", appear error : gcc.exe : fatal error: -fuse-linker-plugin, but liblto_plugin-0.dll not found compilation terminated. make: * [all] Error 1. Does anybody know how to solve it?
sintakartika
  • 127
  • 3
  • 11
5
votes
2 answers

Where is comsupp(w).lib?

I'm trying to compile some COM code, the example here. I get the compilation fine, but linking complaints about ConvertStringtoBSTR missing. After doing some research, I found out that said symbol should be in comsupp.lib. The problem is that I can…
dsign
  • 12,340
  • 6
  • 59
  • 82
5
votes
0 answers

MinGW fails to compile project with -lc, -lm and -lrt linker's flags

I'm trying to compile python bindings for Kyoto Cabinet with Mingw32 for Windows7. I have several dirs in my library path: C:/MinGW/lib folder and a folder with kiotocabinet.lib; MinGW finds its own libs successfully but if fails with three…
lithuak
  • 6,028
  • 9
  • 42
  • 54
5
votes
1 answer

How to specify the exact ordinals for dll exports in MinGW?

I'm trying to build a DLL with MinGW and I need to augment the exports it is generating. I need to assign specific ordinal numbers to certain exported functions. I created a .DEF file, but I can't find the option to tell MinGW linker to use it. Is…
rustyx
  • 80,671
  • 25
  • 200
  • 267