I am new to Mingw-w64. Downloaded the source code and after a longer fight I managed to compile successfully using mingw32. Then I tried my first compile, which went through successfull as well using the following command line:
/C/Mingw64/bin/x86_64-w64-mingw32-g++ -o hw.exe hw.cpp
But when I try to run the program afterwards I get the 0xc000007b error.
This is my compiler:
$ /C/Mingw64/bin/x86_64-w64-mingw32-gcc -v
Es werden eingebaute Spezifikationen verwendet.
Konfiguriert mit: ../src/configure -target=x86_64-w64-mingw32 -disable-multilib -with-sysroot=/c/Mingw64 -prefix=/c/Mingw
gcc-Version 4.8.0 20120601 (experimental) (GCC)
Forgot to mention, this is all happening on Win7-64.
In most case, 7B means your mixed a 32 bit binary (for example a 32bit dll) within your 64bit app. using Windbg to check every dll loaded by your app, you will have some finding.
Yes, I guess that was the issue, recognized that at some point that I had 32bit and 64bit binaries.
Ended up trying to rebuilt, all as 64 bit which was never successful (have a related post under help). Currently I am trying around with a precompiled package.
Could you please let me know if there is a "precompiled package" for 64 windows? Indeed, my program requires 10 GB ram so I have to compile with 64Bit compiler.
sdehghan: in the future, please create a new topic to ask your question.
There are 64-bit toolchains here: http://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win64/Personal%20Builds/
They can compile to 64-bit code only (at least most of them)
I will soon upload multilib compilers which can also produce 32-bit binaries, to replace the ones I have uploaded now.
You could also try my (rubenvb) 32-bit builds, the linker was compiled with -enable-large-address-aware. It'd be interesting to see if that is enough even for your case (the limit is normally 3-4GB on a 64-bit OS for a 32-bit binary)