mingw Questions

2

Solved

I'm trying to compile something that depends on gtkspell, which depends on enchant, under MinGW. I'm getting errors like gtkspell/gtkspell.c:757: undefined reference to '_imp__enchant_broker_init'...
Traver asked 7/4, 2012 at 23:28

2

Solved

I have this code: #include <stdio.h> #include "SDL/SDL.h" SDL_Surface *screen = NULL; int main(int argc, char* args[]) { SDL_Init(SDL_INIT_EVERYTHING); screen = SDL_SetVideoMode(640, 4...
Guideboard asked 2/7, 2013 at 20:16

1

It seems like only the "C" locale is working with MinGW. I tried the example found here and no commas were added even though the system locale is set to Canada. #include <iostream> #include ...
Deadandalive asked 8/12, 2018 at 10:27

10

Solved

I am using eclipse CDT to test the Intel instructions and below is my program: #define cpuid(func,ax,bx,cx,dx)\ __asm__ __volatile__ ("cpuid":\ "=a" (ax), "=b" (bx), "=c" (cx), "=d" (dx) : "a" (f...
Paleethnology asked 5/6, 2013 at 17:33

1

Solved

When using MinGW, it's easy to run into a DLL hell, i.e. your program not running because it either doesn't find the required DLLs or finds incompatible versions of them. This can manifest itself a...
Alabaster asked 9/6, 2024 at 10:45

5

Solved

The top-level CMakeLists.txt contains: include(CTest) add_subdirectory(lib) add_subdirectory(demo) add_subdirectory(test) lib/CMakeLists.txt is essentially: add_library(MyLib <sources>) ...
Ratiocination asked 17/12, 2019 at 15:1

2

Solved

I'm trying to use C++20 in VS Code with the Code Runner extension, which allows me to run code using ctrl+alt+n. I have installed MinGW64 through the MSYS2 installer. My compiler version is 12.0.2....

4

How to use the Windows API in MinGW?
Kurth asked 10/10, 2009 at 21:33

3

Solved

When running the checks for my R-package (via devtools::check()) I face the warning ''qpdf' is needed for checks on size reduction of PDFs. I found this question were it was suggested (if I underst...
Writeoff asked 10/1, 2017 at 14:0

3

Solved

I was trying to compile the code below (from https://mcmap.net/q/64265/-how-do-i-execute-a-command-and-get-the-output-of-the-command-within-c-using-posix). The compile went OK, if I compile with ...
Poisoning asked 4/3, 2014 at 8:31

5

Solved

I'm trying to set up MinGW. I have downloaded the latest installer, which installs mingw-get but this utility fails to fetch the packages and gives the following kind of messages: mingw-get: * E...
Fulfil asked 13/3, 2011 at 19:50

2

I have a simple socket program that I'm trying to compile using g++ running in mingw (both the latest versions) on a Win8 system. I'm getting the common linker errors undefined reference to `__imp...
Strict asked 11/3, 2014 at 0:29

6

Solved

I have followed the instruction on the "GMP Install Instruction for Windows Platform". I could build a 32bit version of GMP which can be used for Visual Studio. ./configure --prefix=${gmp-install}...
Impassible asked 17/1, 2011 at 8:44

17

I have reached the end of my rope with CMake; it has so much potential, but I cannot seem to make it find the basic system tools (i.e. make) in order to function. SYMPTOMS CMake and the CMake GUI...
Frutescent asked 26/5, 2011 at 16:7

16

Solved

I have been working on a project (a game to be specific) and I feel that I should start over with different libraries. So when doing this I reinstalled Code::Blocks and setup my new libraries and i...
Car asked 19/6, 2011 at 17:53

9

I'm new to this. Just wanted to ask how to compile a makefile. I am using MinGW compiler in C language. Do I have to save all my files in MinGW\bin? because right now my files are in a different di...
Haber asked 2/8, 2012 at 7:7

2

Solved

I'm trying to cross-compile cachecoin binaries on a linux host using gitian and i686-w64-mingw for a windows target. The compilation works fine until the final step of static linking of the depend...
Iambus asked 8/5, 2015 at 15:1

1

I'm a C newbie who recently installed gcc and gdb on windows 10 through MinGW. However, when I tried to debug my program using gdb through win10 cmd I got an error. Here's what I did on cmd: gcc ...
Susurrate asked 7/10, 2017 at 10:32

6

Solved

Here's my code (created just to test fork()): #include <stdio.h> #include <ctype.h> #include <limits.h> #include <string.h> #include <stdlib.h> #include <unistd.h...
Jenks asked 8/3, 2012 at 2:56

8

I'm currently using VS Code to learn C++ because it was easy to setup and is much lighter than VS Studio. However, one thing that I'm unable to do is to see the elements of an array (or string, etc...
Willey asked 30/6, 2019 at 22:46

4

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?
Originate asked 9/10, 2013 at 10:22

8

internal error in mingw32_gt_pch_use_address, at config/i386/host-mingw32.c:190: MapViewOfFileEx: Attempt to access invalid address. I get this error while compiling a c++ program in sublime-text...
Sussi asked 20/5, 2020 at 14:45

3

Solved

I have recently moved from Window 7 to Windows 10 and I cannot get my makefiles to work anymore. I have been using the GNU Make for Windows The first thing that I noticed was that it had started ...
Spent asked 18/12, 2017 at 19:10

6

Solved

I started using SDL today and had some trouble before, now I got it running but it won't let me init it. This is my code: #include <iostream> #include "SDL.h" #undef main using namespace ...
Splendid asked 9/5, 2015 at 23:53

0

I have a curious problem porting working numerical code from Intel 2023 & MSC Visual C++ 2022. The code compiled with GCC is perfectly accurate (too accurate) since some library calls are worki...
Circumpolar asked 25/10, 2023 at 16:36

© 2022 - 2025 — McMap. All rights reserved.