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
2answers
31 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 ...
0
votes
0answers
3 views

MinGW Compile Error - '__off64_t' does not name a type [migrated]

I just reinstalled MinGW and the Codelite IDE on my Windows PC, however I'm now unable to compile/build a project. It is odd because every time I change a setting or make a new project, I am able to ...
0
votes
0answers
8 views

I'm having an issue with MinGW's g++ command

I'm running MinGW64 (32-bit) to compile a c++ app, but everytime I try to run g++, I get "bash: /mingw64/bin/g++: cannot execute binary file: Exec format error". However, in CMD (win32), it works fine....
-2
votes
0answers
30 views

Error while Building OpenCV with MingW and Cmake on Windows 10

I want to compile OpenCV with MingW and Cmake in Windows 10. I have : OpenCV version : 3.4.4 g++ (x86_64-posix-seh-rev0, Built by MinGW-W64 project) 7.3.0 gcc (x86_64-posix-seh-rev0, Built by MinGW-...
0
votes
1answer
39 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 ...
0
votes
0answers
35 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 :...
0
votes
1answer
23 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
295 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
152 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
145 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
87 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
215 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
222 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
94 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
35 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
130 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
118 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
4k 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
82 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 ...
1
vote
0answers
153 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
1k 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
39 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
336 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
67 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
210 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
552 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
227 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
156 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
328 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
2k 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
547 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
64 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
272 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
5k 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
9k 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
82 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
509 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 ...
10
votes
1answer
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 ...
48
votes
2answers
64k 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 ...
5
votes
1answer
3k 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
993 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
191 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
497 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
447 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 ...
3
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
500 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
632 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:...