Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [mingw]

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

0
votes
0answers
5 views

Function 'GetRawInputDeviceList' could not be resolved [migrated]

First trial of this function using: ENV: Eclipse IDE for C/C++ & MinGW32 in Win10-64. Reference: GetRawInputDeviceList function at Microsoft My hello-world code is simple: #include <...
-1
votes
0answers
21 views

C++ Recursion Returning Two Void Functions [closed]

I am attempting to make a maze solving algorithm. Inside this algorithm where i want to return multiple recursion statements, however I get this error. error: invalid operands of types 'void' and '...
0
votes
1answer
13 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 ...
1
vote
2answers
160 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, ...
0
votes
1answer
77 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
1answer
77 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 ...
0
votes
0answers
61 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 ...
0
votes
1answer
124 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 ...
1
vote
0answers
172 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
1answer
73 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
0answers
31 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 ...
0
votes
1answer
117 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
0answers
93 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
vote
3answers
3k 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 ...
0
votes
1answer
72 views

How do I use `ts` (timestamp) command in msys2/mingw

I have some problem with zsh, I need ts to log the execution time . zsh -xv 2>&1 | ts -i "%.s" > zsh_startup.log But zsh: command not found: ts pacman -Ss ts got a lot of unrelevernt ...
0
votes
0answers
132 views

How can I open a file with its default application from the MinGW Bash prompt?

In the default windows command prompt you can open a file from the command prompt by entering the name. See Open file with default application from command line. Is there an equivalent in the MinGW ...
0
votes
1answer
989 views

CMake error when creating project in CLion

I recently uninstalled Cygwin and switched to using MinGW as my toolchain. I installed the required packages; I triple checked to make sure that mingw32-make, mingw32-gcc and mingw32-gcc-g++ are all ...
0
votes
1answer
37 views

How to change make builtin rules

I would like to know if there is a way to change the rules applied automatically by make when there is no makefile. To give an example, if you write make foo in a directory containing a file called ...
1
vote
2answers
299 views

Install haskell in existing msys2

Is there any simple way to install haskell / cabal / stack in an existing msys2 installation? I can't find one. Note: Apparently it is possible to install both at the same time using MinGHC, see here....
0
votes
1answer
66 views

using ssh from Git for Windows in a stand-alone fashion

I am having Git for Windows (this comes with MinGw64 binaries and an msys-dll set) and have extracted (thanks to depends.exe) only the program SSH.exe with the needed DLL files for using those ...
1
vote
1answer
186 views

Device names in MSYS2 dd

Which is the equivalent of: dd if=/dev/sda ... dd if=/dev/sda1 ... for dd.exe in MSYS2 in coreutils Does Chrysocome syntax apply?
0
votes
1answer
441 views

How do you change versions of gcc on windows?

I've been using g++ 4.8.1, mingw. Now, I've just updated to 6.3.0, however when I use g++ in command prompt it still seems to use the older version. How do you change between versions on windows?
2
votes
1answer
211 views

cd Command in ConEmu and MinGW

I'm running MinGW bash in ConEmu and have set the HOME variable to my desired directory c/Users/<username> in the MinGW/msys/1.0/etc/profile file. The problem is that when I enter cd in ConEmu,...
0
votes
1answer
148 views

Periodic input to Windows gitbash terminal

My bash terminal is receiving a space (chr 32) immediately followed by a backspace (chr 8) every 5 seconds (almost exactly). The effects aren't noticeable when typing, as the added space is deleted ...
2
votes
0answers
19 views

Adding MinGW distro to path permanently [duplicate]

So I have this distro installed for MinGW. And while it works flawlessly, I'm a bit at a loss on how to add it to my path permanently. If anyone could help me understand the batch file and how to (...
1
vote
1answer
283 views

msys path error due to space in the directory name

I launched the msys console and checked the path environment variable. I got the following: $ $PATH sh: /c/Users/wud/AppData/Local/Continuum/Miniconda3/Library/mingw-w64/bin/:.:/us r/local/bin:/mingw/...
3
votes
1answer
1k views

How can I change my MinGW/MSYS + mintty home directory?

I use mintty as my console emulator for MinGW/MSYS. Recently (I'm not certain exactly when), the home directory used by this combination changed from my Windows user folder (/c/Users/<me>/) to /...
3
votes
0answers
517 views

Change permissions on single file in tar.gz file

I need to change permission on a single file in a tar.gz archive without extracting it, but I was unable to find any way to achieve it either on man pages or by google search. More detailed scenario: ...
0
votes
1answer
59 views

Trying to use mirror for pacman (mingw64) but it cant find db file on servers

This is my problem: Im trying to compile gEDA (pcb-creator) on Win7 and troubleshoot the upcomming errors. Currently Im stuck at this one, returned from ./configure: Cannot find gdlib-config. and ...
0
votes
1answer
249 views

FFmpeg + mingw64: undefined reference to `sem_post'

I am having trouble building ffmpeg using mingw64 compiler. This is my configure: ./configure --prefix=/home/ytan/Dev/build-mingw/ffmpeg/ --enable-cross-compile --cross-prefix=x86_64-w64-mingw32- --...
1
vote
2answers
4k views

How do we install new libraries for c++ mingw?

I wanted to learn about 'ncurses' library.But I am a beginner and couldn't understand how to get the library setup and usable.Do you just copy the library files and start using it or is there ...
0
votes
2answers
2k views

How do I install ImageMagick for MinGW on Windows 7?

Well... I have already installed MinGW32 (I don't know the version - installed in a folder named Git 2.4.4.2) on Windows 7, and I want to install ImageMagick to run some scripts like the follow: ...
6
votes
1answer
8k views

MINGW64 bash: wget: command not found

I am using git with MINGW64(install by git) on windows. MINGW64 is great, but lack of some command which rarely use on windows. Today, I just have a whim to figure out how to use wget in it. I found ...
0
votes
2answers
80 views

How to install ssh certificate on >400 servers?

To not type password when doing anything on any of these servers, I need to upload my ssh certificate to the remote: ssh-copy-id CptBartender@remote Now... I need to upload that cert to over 400 ...
1
vote
1answer
467 views

Git bash and cmd don't load my user account PATH variable

Start up a gitbash or a windows cmd session and run echo $PATH or echo %PATH% They both print the contents of the system PATH variable, but neither prints the contents of the PATH variable ...
9
votes
0answers
3k views

Unable to rsync to another volume with Git Bash

I use git bash on a windows machine: version 2.7.2 (32-bit version) of Git for Windows built on 2016-02-23 available from https://git-scm.com. Within bash I can copy a directory from /c/ to /e/ (a ...
42
votes
2answers
58k views

What is Git Bash for Windows anyway?

I have happily been using Git and Git Bash from https://git-scm.com/. There is a page with more information here: https://git-for-windows.github.io/. Yesterday I ran into a problem with rsync, and I ...
4
votes
1answer
2k views

How do I open the current directory in mingw's msys in file explorer?

Assume I'm in: $ pwd /home/foo Now I want to open up this /home/foo in Windows 10's file explorer. How do I do this?
-1
votes
1answer
959 views

How can I compile C++ code into an independent Windows executable? [closed]

I've got a C++ program that I can compile and run on Mac OS 10.11 using g++. I also was able to compile and run it on Windows 10 using Visual Studio. However, when I tried to run the .exe file on a ...
0
votes
0answers
175 views

How to correctly pin MSYS to task bar in Windows 8?

I use MSYS/MinGW a lot on Windows 8.1 and wanted to create a shortcut on the taskbar at the bottom. What I did is to lauch MSYS, and once it appears on the task bar, choose "pin this program to task ...
2
votes
1answer
451 views

Start Git Bash from users directory

I am running the latest version of git on Windows. When I start Git Bash (Running MINGW32) from my start menu it starts git from my users home directory. When I pin the window to the task bar and then ...
1
vote
1answer
411 views

Trying to get git's core.pager to work on both mingw and cygwin

I am trying to get git for Windows working identically in the mingw bash that comes with git for Windows and in my cygwin terminal. Right now, I cannot get the core.pager (which determines whether a ...
2
votes
1answer
2k views

What is the difference between the different GCC on Cygwin, and which one to install?

I need to install GCC for Cywin, but I see that there are five different "gcc-g++" packages: cygwin32-gcc-g++ gcc-g++ mingw-gcc-g++ mingw64-i686-gcc-g++ mingw64-x86_64-gcc-g++ What is the difference ...
0
votes
1answer
482 views

What is MinGW lic class?

I'm trying to figure why a fresh MinGW install with base, gcc and gcc-g++ (and associated dependencies) can't find the compiler. The setup program has a lic class, but I can't determine what it is, ...
1
vote
1answer
593 views

Different behaviour of the find (parameter not correct) on *nix and windows (ming32) systems

This command called from the Makefile works ok on the various *nix systems, but fails with Windows + Mingw32 bash/makefile: for a in `find libr | grep -e dll$$`; do cp $$a ${WINDIST} ; done This is ...
7
votes
2answers
4k views

Editor for 'git bash' on Windows (editor for mingw/msys+mintty)?

I am using 'git bash' for Windows (from 'git for Windows') which in turn consists of mingw+msys and a mintty. This mingw installation contains a 'vi' editor which works in the mintty. Good. Question:...
0
votes
1answer
438 views

How to access windows administrative share from mingw shell?

I am using a mingw shell that comes with github by default, I've been accessing my server's administrative share by: \\myserver\c$\path\to\dir Is there a way to access it from mingw shell without ...
1
vote
0answers
85 views

Terminal reset troubles

According to the MinGW setup program, I have the bash shell installed. When I attempt to issue a reset, I get: sh: reset: command not found Bash responds to the reset command in every other ...
6
votes
1answer
4k views

How can I use mintty as the terminal emulator for MinGW/MSYS?

The default "terminal emulator" in Windows leaves a lot to be desired. I see mintty recommended as a lightweight alternative with specific support for MinGW/MSYS, but not much information on how to ...
2
votes
1answer
6k views

How to use echo in shell command from Makefile?

I have a GNU makefile. It runs fine on Linux, Solaris and OS X. However, under Cygwin-32, Cygwin-64 and MinGW, it produces: /bin/sh: -c: line 0: syntax error near unexpected token `(' /bin/sh: -c: ...