Questions tagged [mingw]

MinGW, a contraction of "Minimalist GNU for Windows", is a minimalist development environment for native Microsoft Windows applications.

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

mingw grep does not find matched results

grep -rn "bg.tool" "pom.xml" does not find any result in pom.xml. However, many pom.xml in the current directory or its subdirectories contain that string. Is it a MINGW thing, or ...
  • 2,670
0 votes
1 answer
31 views

Why is my git bash (mingw64) running a nonsense command when using the -c option?

I am getting this at the moment when using git bash: C:\>bash -c pwd C:\Program Files\Git\bin\bash.exe: line 1: $'MZ\220\003': command not found /c When I use the debbuging option, I get this: C:\&...
  • 11
0 votes
0 answers
79 views

How to download GDB from minGW correctly?

I am using GDB, downloaded from MinGW Installation Manager(I doubt it's installed correctly), to debug C++, and GDB cannot be found in the path below used to debug. C:\msys64\mingw64\bin Other exes ...
2 votes
0 answers
24 views

Why does $PATH come in two different formats in mintty on Windows?

I'm trying to use node to do a small inline string manipulation of the current PATH in a bash script (in mintty.exe on a GitHub Windows Action Runner), but it's not working as expected. I've recreated ...
0 votes
1 answer
43 views

'gcc' not recognized though C:\MinGW\bin added to path

I installed mingw from the mingw installer and installed all the basic packages needed. I can run gcc if I give the address of the folder to cmd but not without it. I will attach all the images. The ...
1 vote
1 answer
28 views

How do I stop emacs from clearing the screen in MinGW?

I'm getting some odd behavior in MinGW on Windows. Every time I open emacs in the terminal emulator (emacs -nw), I find that when I close out of it that terminal has cleared itself. For example, if I ...
0 votes
0 answers
113 views

How do I pass a include path to windres?

I am trying to cross compile libiconv-1.13.1 for windows using mingw32. I have got a custom toolchain placed in /usr/i686-w64-mingw32/bin/ This is for the NetSurf browser project. I have set the paths ...
1 vote
1 answer
1k views

Cannot find g++ after msys2 install

I want to install g++ so I can compile and run C++ code in VScode. I started by trying to follow the VSCode-provided guide which states I need to install mysys. I tried installing msys2 per the given ...
3 votes
1 answer
4k views

How can I properly configure the g++ include path with mingw64?

I have installed msys2/mingw64 because I need the g++ compiler. Now, I want to compile some c++ oce which requires openblas. I have installed the package using pacman -S mingw-w64-x86_64-openblas. ...
-1 votes
1 answer
462 views

How to install latest GCC/Mingw in Windows 7 32 bit Operating System?

I know that I can download MinGW from Cygwin, MSYS, but I saw that they don't have the latest GCC compiler. And that's why I searched in Google that how to get latest GCC in windows, and I found ...
1 vote
0 answers
375 views

Difference between msys2.exe and mingw64.exe in MSYS installation

I have an MSYS installation on my Windows machine. Inside the root folder, there are two executables: msys2.exe mingw64.exe (There is also a mingw32.exe but that is just the 32-bit version of ...
1 vote
0 answers
32 views

How to get output from the console and act on it without expect?

I have read in another question’s answer that if you want to use expect like this: git clone ssh://git@domain.com/myproject.git expect "Enter passphrase for key..." send "myPassword\r&...
  • 133
2 votes
1 answer
304 views

Failed attempt to expect and send in an expect script in MinGW

I’m using MinGW and I am trying to write an expect script which will run git clone. My script: git clone ssh://git@domain.com/myproject.git expect "Enter passphrase for key..." send "...
  • 133
0 votes
0 answers
17 views

disconnecting Cygwin commands from Windows CMD

in a system im trying to use gcc installed in c:/mingw/bin, i also set the related PATH variable for that, but running the command gcc -v always shows the cygwin installed gcc because it tells Thread ...
  • 101
0 votes
1 answer
126 views

Didn't get the run terminal in mingw

I've installed mingw from mingw While installing I stopped in mingw installation manager. I followed this tutorial : tutorial In the Installation manager : Then I reviewed those changes : Then I ...
0 votes
1 answer
42 views

On mingw/pacman why does harfbuzz requires glib2, which requires python?

I was installing SFML from pacman, which requires freetype, and I got a nasty cyclic dependency between freetype and harfbuzz, which is another issue. My main question is about this chain of ...
  • 409
1 vote
0 answers
706 views

Shifting C++ Compiler from Windows to Windows Subsystem for Linux (WSL)

While learning how to code in C++, I installed minGW to allow me to compile C++ code through IDEs and the command prompt. However, recently I have been trying to use the WSL for most of my tasks. ...
  • 11
1 vote
0 answers
1k views

Vim text messed up over ssh on Windows remote host regardless of terminal, works fine on Linux remote host

vim works fine on the first invocation on a remote Windows host, but further use leads to my terminal getting messed up. :redraw! and reset do not help: Using the same local terminal, vim works fine ...
  • 111
4 votes
3 answers
8k views

How to install clang-format on MinGW (Windows)?

I tried searching with pacman -Ss for clang-format, git-clang-format, etc, but I'm not having any luck. However, I have seen some references to it on some other websites, implying it may exist (or ...
3 votes
1 answer
3k views

How do I downgrade MinGW GCC to 4.8,4?

I'm starting a C++ course in college, and they asked for all assignments to be compilable on GCC 4.8.4. I decided to go with MinGW on Windows 10 via Eclipse, but on the "Versions" tab of any given ...
0 votes
0 answers
2k views

Sublime Text 3 - g++ is not recognized as an internal or external command

I am trying to set up Sublime Text 3 so I am able to build and run c++ files. I have installed MinGW, and added C:\MinGW\bin\g++.exe to my system path, but I am still receiving this error after ...
0 votes
1 answer
909 views

Added C:\mingw\bin to path variable, gcc still not recognized

Installed minGW on my windows10 machine, added ';C:\MinGW\bin' to environment variables path, yet when I type 'gcc' into cmd it is still not recognized. Picture for reference.
  • 103
0 votes
0 answers
2k views

Installing extra packages into a git-for-Windows MinGW installation

For most Windows computers I use, I install git for Windows (from https://git-scm.com/downloads) to get a basic set of useful command line tools that I am familiar with from the Linux world (apart ...
  • 686
1 vote
1 answer
753 views

Compile in msys2 mingw64 with -m32 option

Inside a msys2 mingw64 shell, I would like to compile a software with the -m32 option in order to run in 32bit mode. I have installed mingw-w64-x86_64-toolchain But when I compile with -m32, I have ...
0 votes
1 answer
264 views

I just installed sublime text 3 on my laptop. I cant run C codes

I built some build systems by using various codes from google & youtube but cant make it. every time some error is showing. is there any way of solving this? Last time i used this code to build a ...
1 vote
1 answer
87 views

Is it possible to tell from CMD whether i have Cygwin or MSYS?

Is there a way that I can check, from a CMD whether a PC has Cygwin or MSYS (MSYS2, MINGW, MINGW-64...) installed? Note that I need to be able to differentiate Cygwin from MSYS. Thanks!
  • 177
1 vote
0 answers
170 views

Compatible version of Allegro with my GCC compiler

I am using 32 bit version of code::blocks 17.12 with TDM-GCC version 5.1.0-3 on windows 7 ultimate 32 bit. I was using Allegro 5 (allegro-mingw-gcc6.2.0-x86-static-5.2.2). It worked completely fine. I ...
0 votes
1 answer
654 views

Installing Darknet's base system on Windows 10

I'm trying to install darknet (following the instructions on https://pjreddie.com/darknet/install/) I ran: git clone https://github.com/pjreddie/darknet.git make And am getting the following error:...
0 votes
1 answer
91 views

Can Alpine3D's code be compiled following their instructions?

I have been attempting to run Alpine3d for a personal project to model wind-drifted snow. This software uses 3 main libraries of code (each of which are open source projects of the SLF): MeteoIO, ...
1 vote
1 answer
1k views

Windows 10 Git-bash: Which script sets ORIGINAL_PATH during git-bash start up

When I launch Windows git-bash ver. 2.21.0, /etc/profile assigns %PATH% to $ORIGINAL_PATH and adds a few mingw paths which eventually become the $PATH in the bash shell. However, inside /etc/profile,...
  • 111
2 votes
3 answers
5k views

Installing Mingw-w64 without admin rights

How can I install Mingw-w64 without admin rights? Note that I was able to install MinGW without admin rights. I am using Windows 7.
1 vote
0 answers
63 views

Trying to install gcc+ in Git [duplicate]

For Installing gcc+ in Git for the Windows bash environment I can't seem to find anywhere the proper order of which should I download first? And how I would go about setting up the PATH environment. ...
0 votes
1 answer
2k views

Execute CMD command with Shell

Trying to execute a .bat file from a shell script. This .bat file calls another .bat file. The first bat file contains: other_file.bat -c some_conf.xml This means I cannot do: start dir/my_file ...
0 votes
1 answer
970 views

installing MinGW-x64 in code blocks windows 10 error: No such file or directory found

I am trying to change code blocks configuration to work with min gw x64'. i tried the method How to specify MinGW64 for codeblocks 17.02 on Windows 10?. but still i am getting following error ||=== ...
  • 101
0 votes
0 answers
5k views

pip error: no Fortran compiler found, but compiler already present

I'm trying to install an external library for PyAstronomy using pip: pip install PyAstronomy_ext I do this via Anaconda command prompt. The first time I ran the command the following errors appeared:...
1 vote
2 answers
2k views

cmake environment error with clion

I downloaded MinGW/cygwin/mingw-w64 not one of them work. I can't find the issue, every time CMake - Bundled "!Does not work in this environment". I watched youtube for clion-setup more than one. I ...
  • 21
0 votes
1 answer
61 views

Trying to compile Asylia via its makefile, with MinGW... Wrong compiler? How to fix?

I'm trying to compile Asylia via its makefile, with MinGW... Am I using the wrong compiler? It's seems MinGW is getting stuck on the square brackets in "$(BUILD):"... And square brackets in MinGW are ...
  • 187
1 vote
0 answers
1k views

How to change permissions under Mingw or Cygwin?

My ~/.ssh/id_rsa is 644 when it should be, I believe, 600. The host is Windows 10 and I have both git-bash 2.17.0 and MobaXterm 10.5-3582. If I try to change group, git-bash will fail with $ chown :...
  • 184
0 votes
1 answer
804 views

MinGW compiler : unable to run program in command prompt

I downloaded MinGW compiler . I wrote a small c program and compiled it as follow : gcc -c firstc.c It generated an executable file as "firstc.o" . But when I tried to run the program in command ...
10 votes
2 answers
5k views

MSYS2 and "At least one valid and enabled repository required for this action to succeed."

I have separate MSYS2 32-bit and 64-bit installed on a Windows 8.1 test machine. MSYS2 was acquired from the MinGW-64 download page. Each installation has developer tools installed like GCC, Git, GDB, ...
  • 11.4k
3 votes
2 answers
3k views

QEMU User mode emulation

I am a student and trying to compile QEMU on MINGW32 in user emulation mode. I read in certain document that, the following OS are supported in user space emulation: 1. Linux (referred as qemu-...
-1 votes
1 answer
2k views

What to install with Qt Creator?

I'm trying to install Qt creator on Windows but it has so many options (and the whole installation requires many GB) that I really don't know which ones I need. I only want to be able to create and ...
  • 174
0 votes
0 answers
782 views

Avoid adding unnecessay Windows %PATH% to Git Bash

Unlike Windows & Git Bash: Bash PATH to read Windows %PATH% system variable, I am trying to avoid Git Bash from adding many entries from windows %PATH%. The reason is my Windows %PATH% has many ...
  • 505
0 votes
1 answer
4k views

How to specify MinGW64 for codeblocks 17.02 on Windows 10?

I have downloaded CodeBlocks 17.02 without mingw and installed it, then I downloaded MinGW64 from here(https://mingw-w64.org/doku.php/download) and only changed the architecture option from i686 to ...
  • 149
2 votes
1 answer
2k views

MinGW: Python enabled GDB on Windows

I use QtCreator 4.6.2, which apparently requires Python-enabled GDB if I want to use it as a debugger. I tried to install mingw32-gdb-python version 7.5-1 with MinGW installer (graphical interface), ...
0 votes
1 answer
306 views

How to make MSYS2 pacman believe I installed a package?

I am using MinGW-w64 and MSYS2 on Windows 10. Suppose that there are two libraries A and B. B depends on A, but it also depends on a lot of other things. The official version of library A has a few ...
0 votes
0 answers
173 views

C++ Program Compiling Error on Windows using MinGW32 bit compiler with Scons returns that a C++ Header file is Missing

I'm using Windows 7 SP-1 32 bit. I want to Compile Godot on my System from source. According to the instructions, I installed Python2.x on My system. Then I installed Scons in my system too. I used ...
user avatar
0 votes
1 answer
614 views

Visual Studio Code - printf, scanf, perror, etc - red squiggly underlines

Despite my code compiling and executing fine, the first occurrences of printf, scanf, perror, etc (i.e members of stdio.h) have red squiggly underlines, as does stdio.h itself. Why does my code ...
0 votes
0 answers
462 views

Can't find grub-mkrescue

Im following the os tutorial on osdev but i can't find grub-mkrescue it was not included in mingw a quick search told me to get cygwin but it was not included in cygwin either Thats why im asking here ...
  • 1
11 votes
3 answers
35k views

Install GCC in Git for Windows bash environment

I have Git for Windows installed on a Windows 7 machine (no, sadly I can't switch to W10 on this particular machine). This comes with a bash environment that uses MinGW-64 but only includes some ...
  • 686