Questions tagged [mingw-w64]

The MinGW-w64 (MinGW fork) project is a complete runtime environment for gcc to produce binaries native to Windows 64-bit and 32-bit operating systems.

Filter by
Sorted by
Tagged with
0 votes
0 answers
11 views

Running MPI on windows using minGW64 through Msys2

I've just installed the package for mpi using msys2: pacman -S mingw-w64-x86_64-msmpi I've noticed that this has installed some executables to compile the code such as mpicc.exe, but I can't find ...
Gabriele Passoni's user avatar
-1 votes
0 answers
53 views

Compiler can't find gl.h?

I'm trying to include external library. I'm facing an issue while attempting to include the OpenGL freeglut header in my C++ project using Visual Studio Code on Windows. I already downloaded the ...
Retard Programmer's user avatar
0 votes
1 answer
40 views

C++ Output in Debug Console instead of Terminal or Output window (Visual Studio Code)

I have the following problem that when I debug my project in Visual Studio Code, all outputs are shown in the debug console. But i want it in the terminal window or output window. How can i change ...
sNakeSheesh's user avatar
0 votes
1 answer
151 views

Error while building Qt6 from source using x86_64-w64-mingw32

I am trying to build Qt6 for Windows using x86_64-w64-mingw32 from Linux (Ubuntu 23.10). My problem is when I am trying to use CMake for the QtBase repo, I encounter this error which I can't fix: ...
Alexcoratt's user avatar
-1 votes
0 answers
33 views

Undefined references to Imgui functions when linking with Mingw?

I am trying to link imgui and glfw with mingw. Every time i try to run my program, it throws an error: D:\AshesToDo/src/Window.cpp:25: undefined reference to `ImGui::DebugCheckVersionAndDataLayout(...
Shreyas Hosahalli's user avatar
0 votes
0 answers
54 views

Link custom math library in C

I'm trying to run a C program (main.c) with an external math library libmcs (https://essr.esa.int/project/libmcs-mathematical-library-for-critical-systems), which has been compiled using MinGW ...
Giovanni Bay's user avatar
0 votes
0 answers
27 views

Can't use c32rtomb on MinGW, even though header is included

I have a project I made on Linux where I use the c32rtomb function found in uchar.h, and it works fine on Linux. But when I tried porting my project to windows using MinGW, I get this error: warning: ...
Abdulmalek Almkainzi's user avatar
-2 votes
1 answer
37 views

How Do I install MinGW-w64? [closed]

I would like to install MinGW-w64, but I am having problems doing so. With the installer I get an error: "The File has been downloaded incorrectly". I could build it myself from the source ...
Diya Al Deen's user avatar
-2 votes
0 answers
34 views

I am unable to install mingw-64 in my linux (Ubuntu 22.10) machine

first I write sudo apt get update and then sudo apt install mingw-64 but everytime i am geeting this Reading package lists... Done Building dependency tree... Done Reading state information... Done ...
Saurabh Verma's user avatar
-1 votes
0 answers
29 views

path variable not getting recognised by VScode

cd "c:\Users\dhing\Desktop\Coding\C" ; if ($?) { gcc program.c -o program } ; if ($?) { .\program } gcc : The term 'gcc' is not recognized as the name of a cmdlet, function, script file, or ...
Vasu's user avatar
  • 1
-1 votes
0 answers
16 views

Mingw-w64: How to build libcurl.dll with statically-linked zlib/libwinpthread?

I built the libcurl DLL using Mingw-W64 this way: pacman -S mingw-w64-x86_64-openssl mingw-w64-x86_64-zlib ./configure mingw64 --with-openssl make The resulting libcurl-4.dll has the following ...
Simon J's user avatar
0 votes
0 answers
33 views

Unable to compile caide-cpp-inliner

I need a tool for dead-code elimination in C++. caide-cpp-inliner So, I cloned the full Git repository along with llvm-project, and I am trying to compile Caide using CLion and MSYS2 MinGW64. ...
user366312's user avatar
  • 16.9k
1 vote
0 answers
53 views

Cross-compiling Go program which uses cgo for Windows using MinGW: link errors

I have a problem building my Go app for windows.I am using tesseract ocr in my app, for this i found gosseract package. When I build it for macos(I use macbook air m1) it builds, but when I try to ...
Folium's user avatar
  • 59
3 votes
1 answer
172 views

C++: `error: expected ',' or '...' before string constant` before `__FILE__` in `fancy_abort (__FILE__, __LINE__, __FUNCTION__)` when compiling gcc

This is a continuation of trying to compile a license-free GPL version of the Microchip XC32 microcontroller g++ XC32 v4.35 cross-compiler from source. See my Q&A here, and my repo here: https://...
Gabriel Staples's user avatar
0 votes
0 answers
45 views

MinGW doesn't have the libtclstub.a and libtkstub.a libraries so TCL won't compile

Using: Windows 10 64-bit with MINGW64 on Git Bash. I've been trying to compile a TCL package in MinGW (https://sourceforge.net/projects/mingw/) (which the package said to use), but C:\MinGW\lib doesn'...
Zamyatin's user avatar
-1 votes
1 answer
22 views

mingw64 Makefile:5: *** missing separator

I'm using mingw64 in Windows trying to invoke Makefile to run Go but keep getting: Makefile:5: *** missing separator. This is the Makefile: BINARY_NAME=celeritasApp.exe ## build: builds all binaries ...
user63898's user avatar
  • 30k
0 votes
0 answers
32 views

MinGW-w64 installed on Win10 but "make" doesn't work? [duplicate]

On a Win10 machine I've got MinGW-w64 installed and with these files... main.cpp demo.h demo.cpp in a directory I can run... g++ main.cpp demo.cpp from the command line and it compiles just fine. ...
Fran_3's user avatar
  • 378
3 votes
1 answer
209 views

`checking size of mp_limb_t... 0` and `configure: error: Oops, mp_limb_t doesn't seem to work` when compiling the Microchip XC32 compiler from source

I am unable to figure this out. I am trying to build the Microchip XC32 PIC32 microcontroller GCC cross-compiler. To try it yourself (this is how I got to my error I'm stuck on): On Windows 10 or ...
Gabriel Staples's user avatar
0 votes
0 answers
40 views

I use MinGW64 with CMake on WIndows 10 and it throws me linker errors

I'm using CMake and MinGW Makefile + GCC (mingw64). I set to find ws2_32 and crypt32 libs. Cmake find their properly, but i have linker errors anyway. I have tried many solutions from internet, but i ...
bergemon's user avatar
0 votes
1 answer
53 views

pthread_setschedparam not working on GCC with mingw64

I'm trying to run the example code from here on Windows 11 with GCC v13.2.0 installed (MSYS2, UCRT runtime): #include <chrono> #include <cstring> #include <iostream> #include <...
Mark's user avatar
  • 1
0 votes
0 answers
17 views

What is the difference between GCC options `-shared` and `-mdll` (Windows specific)?

The document describes quite obscurely that the linker option -shared generates a shared object, and the Windows specific option -mdll generates a dynamic link library. I don't think this information ...
Wilderness Ranger's user avatar
0 votes
0 answers
28 views

ld.exe: cannot find -ld3d12 - Qt6

My CMakeLists looks like this: cmake_minimum_required(VERSION 3.5) project(Example VERSION 0.1) set(CMAKE_INCLUDE_CURRENT_DIR ON) find_package(OpenCV REQUIRED PATHS "C:/opencv/build/x64/mingw64/...
Ja_cpp's user avatar
  • 2,424
0 votes
0 answers
350 views

How do you solve no matching distribution found for kivy_deps.gstreamer_dev~=0.3.3 in mingw64?

I am looking to make a small test app that uses python, pygobject, kivy, and gstreamer on windows 11. Because of pygobject, I have to use a mingw64 terminal since it does not work directly on windows ...
Ricardo's user avatar
0 votes
1 answer
41 views

mFAST project fails to build with Mingw-w64(ucrt64)

I am trying to compile mFAST library on my Windows 10 system. I am using VS Code as IDE, and GCC(ucrt64) compiler from MSYS64 to build the library. I have installed boost using pacman -S mingw-w64-...
Prabal Kajla's user avatar
0 votes
0 answers
65 views

MinGW-W64: gdb requires python?

I'm working on Windows 11, and I've installed MinGW-W64 as seen below. I've tried to run GDB (which I believe it has), but it has some error message saying something about Python. I do have Python as ...
Ryan Wang's user avatar
1 vote
2 answers
117 views

How to build MKL with Cmake and mingw on Windows?

I am trying to build a C-project where I use the Math Kernel Library (MKL) by Intel to accelerate matrix multiplication as follows: #define MKL #ifdef MKL #include <mkl.h> #endif void ...
SuperKogito's user avatar
  • 2,908
0 votes
2 answers
126 views

how can i solve this compile error #Please update your includePath. Squiggles are disabled for this translation unit

please update your includePath, Squiggles are disabled for this translation unit these errors pop up in my vscode when I try to compile using mingw64. I've attached my code below. This is my main.cpp #...
Mikman's user avatar
  • 19
0 votes
0 answers
74 views

sm64-port built using mingw-w64 GCC (MSYS2) under Github Actions won't run, exit code 132

Update: I believed this happened due issues with upload-artifact action, namely, corrupted ZIP when downloading the artifact, as many issues addressed that (and apparently persist today). However, ...
Amitie 10g's user avatar
0 votes
1 answer
101 views

! [remote rejected] main -> main (pre-receive hook declined)

We recently migrated the gitlab server, the structure is working without problems via the web browser. However, when I try to push git push origin main I return the following error: lucas_a@NB04 ...
Lucas Alves's user avatar
-1 votes
1 answer
149 views

gcc / g++ command does nothing and exits with code 1

gcc / g++ throws exit code 1 and does nothing I tried to compile my c++ / c files using gcc / g++ ! It did nothing the command neither produced a.exe file it didn't throw any error ,(print anything ...
infinull's user avatar
1 vote
0 answers
41 views

Why am I getting "relocation truncated to fit: R_X86_64_32S against '.text'" when assembling a tiny program?

I'm currently following a course on x86 assembly programming with AT&T syntax. We were instructed to setup WSL and use gcc to assemble our code, but for a bonus assignment I want to write a ...
Floris van Onna's user avatar
0 votes
0 answers
32 views

Error while installing MinGW-w64 .exe file for Widnows 11 [duplicate]

I'm trying to install MinGW-w64 compiler for c lang on Windows 11 from this sourceforge site. I downloaded the .exe file but when I go through the installer, and after setting the default path, it ...
Alan Ari's user avatar
1 vote
1 answer
235 views

i686-w64-mingw32-gcc/x86_64-w64-mingw32-gcc not working GLFW

How do I fix this error? None-of-your-business@penguin:~/None-of-your-business$ x86_64-w64-mingw32-gcc -o bin/EreecliseWin64.exe src/main.c src/main.c:4:10: fatal error: GLFW/glfw3.h: No such file or ...
Same's user avatar
  • 9
0 votes
0 answers
58 views

Error argument list is too long when running Makefile

Error occur on linking to create static library use ar with many object files /bin/sh: /mingw64/bin/ar: Argument list too long I am on windows using msys2 when build them. I am tried to copy its ...
Orang Keren's user avatar
0 votes
0 answers
53 views

can't run C code when using top right button in vscode, it runs by clicking run code

I am learning C from w3schools and Bro Code on YouTube, wrote exactly the same code as he did but encountered the problem. C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-...
hasanfaesal's user avatar
0 votes
1 answer
59 views

Compiling Google Crashpad as a DLL on Windows

Is it even possible to build Google Crashpad into DLLs instead of static libraries? I have a cross-platform application I'm trying to integrate the crashpad to, however the build system of the ...
G-Virus's user avatar
  • 27
0 votes
1 answer
97 views

Msys2 GDB error "The procedure entry point dllMain could not be located in the dynamic link library C:\msys64\mingw64\bin\libncursesw6.dll"

I am using windows 10. I was trying to install gdb via mingw64 pacman. I have installed mingw-w64-x86_64-gdb-13.2-3. But when I tried to start it error occured. "The procedure entry point dllMain ...
SweetPotato's user avatar
0 votes
0 answers
32 views

(lib64_libmingwex_a-dirent.o):(.text+0x2bc): undefined reference to `__strcpy_chk'

I'm trying to build the cygwin toolchain for Linux but When compiling Binutils I got this error. /usr/lib/gcc/x86_64-w64-mingw32/12.2.1/../../../../x86_64-w64-mingw32/bin/ld: /usr/x86_64-w64-mingw32/...
7dog123's user avatar
0 votes
1 answer
58 views

How to use GCC from MSYS instead of the GCC that i have on PowerShell 7

I've installed gcc with MSYS2 using pacman -S --needed base-devel mingw-w64-x86_64-toolchain and got the following output when i do gcc --version on MSYS2 MINGW64 gcc.exe (Rev7, Built by MSYS2 project)...
me-an-ape's user avatar
0 votes
1 answer
164 views

How to fix python environment variable conflicts with mingw64 on Windows?

I have mingw64 installed for C tools. Right now, I am trying to manage multiple python versions using pyenv-win. I followed their installation guide, moved the path for pyenv-win to the top in ...
benkyou's user avatar
  • 71
0 votes
0 answers
62 views

Cross Compilation of Graphical Applications from WSL2

My app compiles with the 32-bit version of mingw inside of Windows. I've been trying to cross compile from WSL2 using the 64-bit version of mingw. Both apps compile, but only the 32-bit version works. ...
TheZouave's user avatar
0 votes
1 answer
64 views

Is it posssible to install MinGW-64 on a USB stick?

My pc have a very low storage and i wanted to install the tools required to compile C++ code in my USB stick instead. i tried to change the installation path in the MSYS setup but the progression bar ...
hopepill's user avatar
0 votes
0 answers
35 views

How to build MinGW-W64 compiler toolchain from source for Windows platform

I need to modify some internal MinGW library sources to fix one issue with it and I couldn't find any recent documentation or tutorial on How to build from source MinGW-W64 compiler toolchain for ...
fskoras's user avatar
  • 68
0 votes
1 answer
131 views

How do I compile cmake generated binaries in 64bits using MinGW (Windows, GCC)?

I've been trying to compile the model loading library Assimp for my project using cmake and then MinGW. However, I don't know how to do that for 64bits which is what I'm using on my project. I used ...
Ian vos's user avatar
  • 39
0 votes
0 answers
68 views

What standard of C++ does the microsoft vscode C/C++ extension and minGW use?

I bought a programming book recently for C++ 20 which has some features that don't seem to work in vscode with the C/C++ extension installed and g++ also shows an error when I try and compile it ...
CriticalBackend's user avatar
0 votes
1 answer
37 views

Clion+PlatformIO arduino avr-gcc unrecognized command line option

Clean installed Clion 2020.1 + Platformio 6.1.9 (using py script from official page) + Platformio clion plugin. Tried to set multiple versions of MinGW toolchains but none is working, after "Re ...
Vadym Borys's user avatar
1 vote
1 answer
33 views

How can I debug functions in shared object libraries with GDB in MINGW64?

I'm trying to reconstruct How can I debug functions in shared object libraries with GDB? answer https://stackoverflow.com/a/59690953/6197439 in MINGW64 gdb - and I cannot: $ cat add.c long add(long x, ...
sdbbs's user avatar
  • 4,498
0 votes
1 answer
205 views

pkg-config cannot find package on Windows with MSYS2

I installed MSYS2 and inside the MSYS2 (MINGW64) shell I installed pkg-config and gtk4. When I ran the command pkg-config --modversion gtk4 inside the MSYS2 shell, everything just worked fine. But as ...
M Qwadezo's user avatar
0 votes
1 answer
49 views

How to deploy qt application using Qt c++

enter image description here I'm trying to deploy my Qt c++ project.I build it successfully and can also execute it on Qt-Creator. However, I can't execute the binary directly in the release folder ...
tushar nemade's user avatar
0 votes
0 answers
62 views

CryptoPP throws exception 0xC0000374 when destructor is called

I am trying to implement a custom AES CTR-mode encryption/decryption based on CryptoPP. However, even the examples provided on their website throw an exception when the decryptor class is destroyed ...
user22307673's user avatar

1
2 3 4 5
33