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

Why is this compiler error happening?

I am working on exception handling for a piece of software I write in C++. I encounter a compiler error (using g++ (GCC) 4.8.1 / mingw32) I don't understand, here is a minimal example: #include #include class Bad_Img_Load:…
Kenji
  • 335
  • 1
  • 15
-1
votes
1 answer

pthread_cond_wait wake many threads example

pthread_cond_wait wake many threads example Code to wake up thread 1 & 3 on some broadcast from thread 0. Setup: Win7 with mingw32, g++ 4.8.1 with mingw32-pthreads-w32 pthread condition variable Solution: http://pastebin.com/X8aQ5Fz8 #include…
Lazik
  • 2,480
  • 2
  • 25
  • 31
-1
votes
1 answer

Error running .exe compiled with i586-mingw32msvc-g++ and SFML on linux

EDIT: Thanks random downvoter! EDIT 2: Thanks @πάνταῥεῖ for explaining what was wrong with the question. When running a debugger I get Program received signal SIGSEGV, Segmentation fault. 0x0046f4c6 in ?? () EDIT 3: This only happens if I run the…
ChemiCalChems
  • 612
  • 12
  • 31
-1
votes
1 answer

DWORD to LPDWORD conversion errors

I am currently trying to build platform-specific implementations for a generic function, and I get weird compilation errors on the WIN32 version. This function is a simple one: it provides the path of the application's configuration file, and the…
MTBS devs
  • 3
  • 2
-1
votes
1 answer

qt compiles successfully but runs fail

I compiled bitoin-qt,PTS coin and other Altercoins successfully ,but thay all can't running. I use MinGW4.4 ,QT 4.8.5 download from website and QT creator 2.8.1. This is my .pro…
Gank
  • 4,507
  • 4
  • 49
  • 45
-1
votes
2 answers

Failed to retrieve "console font-size" using "GetCurrentConsoleFont()" in "Windows XP"?

I compiled this code without any errors and warnings with GCC mingw32: #define WINVER 0x0500 #include HWND StdHandle = GetStdHandle (STD_OUTPUT_HANDLE); CONSOLE_FONT_INFO GETFONT; GetCurrentConsoleFont (StdHandle, FALSE, &GETFONT); if…
Kevin Dong
  • 5,001
  • 9
  • 29
  • 62
-1
votes
2 answers

Why the program collapsed when using FileTimeToSystemTime()?

I want to change FileTime to SystemTime, but the program always collapsed, WHY? Thanks in advance. FILETIME *Kernel_Time; HANDLE Process = OpenProcess ( PROCESS_ALL_ACCESS, FALSE, 0); GetProcessTimes (Process, NULL, NULL, Kernel_Time,…
Kevin Dong
  • 5,001
  • 9
  • 29
  • 62
-1
votes
1 answer

Problems in getting Process Time in C ( Please help me )

I am a newbie in C and WinAPI. I spent more than 3 hours trying to do this, but totally failed. Could anyone help me? Here is my code: FILETIME *KernelTime; // Or struct _FILETIME *KernelTime HANDLE Process = OpenProcess ( PROCESS_ALL_ACCESS,…
Kevin Dong
  • 5,001
  • 9
  • 29
  • 62
-1
votes
1 answer

Compiling opencv with cmake for mingw

I'm building opencv library with cmake for mingw to be used with qt and i've been able to generate the makefilelist. But when i type mingw32-make at the command prompt i get error when it's 44% built. error says: Cannot export…
Capton
  • 67
  • 1
  • 10
-1
votes
3 answers

I tried my first program in mingw. And i got the following output. What is wrong in my program?

Program: #include main() { int fahr; float cel; for(fahr=0;fahr<300;fahr=fahr+20) { cel=(5/9)*(fahr-32); printf("\n %d \t %f",fahr,cel); } } Output which i get: 0 0.000000 20 0.000000 40 …
padmanabhanm
  • 315
  • 3
  • 15
-2
votes
0 answers

Statically linking a .lib file to a dll

I am not sure if this even possible, but I am trying to link a static library (.lib) to a dll during compile time, but I am not having any luck. The main dll contains an export called exportfunc. I am running procmon to monitor rundll32.exe, and I…
user310457
  • 19
  • 4
-2
votes
1 answer

Cannot -static compile project for windows using mingw32 (x86_64-w64-mingw32-gcc) on mac (libstdc++-6.dll )

I have a C++ game using SDL2 and a lot of C++-12 libraries on macOS Big Sur. I can compile it with x86_64-w64-mingw32-gcc, but then .exe file on windows asking for libstdc++-6.dll (also for SDL dlls, but I can download them), downloading…
-2
votes
1 answer

TheFatRat Installation Issues mingw-32 →NOT OK mingw-w64 → NOT OK

TheFatRat Installation Issue... :-) [ mingw-32 & mingw-w64 ] (Plss Help Me with This... Tried All the things you discussed with others... Stuck with this from 3 days...) #244 issue thread : https://github.com/Screetsec/TheFatRat/issues/244 SS issue…
Anmega02
  • 39
  • 2
  • 5
-2
votes
3 answers

Wrong result for division of two doubles in release build

When I compile my application in Release mode I get incorrect division result of 40.0 / 5 = 7. In debug compilation it is correct, and result is 8 I tried to cast to double, from double, to int, without abs() etc, but no luck. I know this must be…
MasterBLB
  • 27
  • 5
-2
votes
3 answers

Print ASCII box not working

I am just trying to print a shape filled with filled ASCII boxes into the console, but the output is just garbage text. Here is my code: #include const char shade_block[] = { "▒▒██████▒▒\n\ ▒████████▒\n\ ██████████\n\ …
xaresys
  • 31
  • 1
  • 3
  • 7
1 2 3
52
53