msys2

Why are the random numbers all the same with MSYS2?

℡╲_俬逩灬. 提交于 2020-08-10 05:20:06
问题 I am trying to generate random numbers using std::random_device but each time I run the program they are the same. I tried the same code using an online IDE and it ran as expected. According to an answer here, this is a bug in Cygwin and MSYS2. How can I upgrade MSYS2? I tried running the commands pacman -Syu and pacman -Su in its terminal but it had errors: MSYS ~ $ pacman -Syuu error: mingw32: key "4A6129F4E4B84AE46ED7F635628F528CF3053E04" is unknown error: key

How to Compile mingw-w64-crt

自闭症网瘾萝莉.ら 提交于 2020-07-23 06:38:06
问题 I'm on Windows 10 and using the latest version of MSYS2 (with gcc installed: pacman -S gcc ) I'm trying to compile mingw-w64-headers and mingw-w64-crt from mingw-w64-v7.0.0 Inside of my MSYS2 installation directory C:\msys2 I have created the folder mingw-w64 which I reference in the prefix argument below. To compile each of these I use the same steps (replace name of library where appropriate): mkdir mingw-w64-crt && cd mingw-w64-crt ../mingw-w64-v7.0.0/mingw-w64-crt/configure --prefix=

How to Compile mingw-w64-crt

柔情痞子 提交于 2020-07-23 06:37:41
问题 I'm on Windows 10 and using the latest version of MSYS2 (with gcc installed: pacman -S gcc ) I'm trying to compile mingw-w64-headers and mingw-w64-crt from mingw-w64-v7.0.0 Inside of my MSYS2 installation directory C:\msys2 I have created the folder mingw-w64 which I reference in the prefix argument below. To compile each of these I use the same steps (replace name of library where appropriate): mkdir mingw-w64-crt && cd mingw-w64-crt ../mingw-w64-v7.0.0/mingw-w64-crt/configure --prefix=

How to Compile mingw-w64-crt

我与影子孤独终老i 提交于 2020-07-23 06:36:08
问题 I'm on Windows 10 and using the latest version of MSYS2 (with gcc installed: pacman -S gcc ) I'm trying to compile mingw-w64-headers and mingw-w64-crt from mingw-w64-v7.0.0 Inside of my MSYS2 installation directory C:\msys2 I have created the folder mingw-w64 which I reference in the prefix argument below. To compile each of these I use the same steps (replace name of library where appropriate): mkdir mingw-w64-crt && cd mingw-w64-crt ../mingw-w64-v7.0.0/mingw-w64-crt/configure --prefix=

How can I link the 3rd party library bzip2 in my gcc compiler?

a 夏天 提交于 2020-07-10 10:32:28
问题 I'm a python developer new to C and developing C code on Windows that needs to work on Windows and Linux. To that end, I downloaded MSYS2 and used pacman to install gcc and bz2. My question is: How do I use bzip2 in my C code. When I try to compile this C code: #include <bzlib.h> using the command gcc test.c -lbzip2 -o test.out I get the following error: test.c:1:10: fatal error: bzlib.h: No such file or directory Am I including the correct header file? Am I linking it correctly? When not

Can't reach repo.msys2.org

纵饮孤独 提交于 2020-06-17 15:03:12
问题 I'm trying to set up MSYS2 on Windows 10 but I'm getting the following error when running pacman -Syu error: failed retrieving file 'mingw32.db' from repo.msys2.org : Operation too slow. Less than 1 bytes/sec transferred the last 10 seconds I've tried pacman -Sy , pacman -Syuu , pacman -S , pacman-mirrors , pacman -Su , pacman -Syu --disable-download-timeout , and I've tried running autorebase.bat. I've also tried using command prompt to ping repo.msys2.org and get no response. 回答1: I think

regex.h in msys2 (windows )

狂风中的少年 提交于 2020-06-17 14:12:15
问题 I am trying to compile cvs-fast-import (https://gitlab.com/esr/cvs-fast-export) on windows running msys2 but when I run make I get an error: main.c:9:10: fatal error: regex.h: No such file or directory This referrs to main.c which looks like this: 001 /* 002 * Copyright © 2006 Keith Packard <keithp@keithp.com> 003 * 004 * SPDX-License-Identifier: GPL-2.0+ 005 */ 006 #include "cvs.h" 007 #include <unistd.h> 008 #include <getopt.h> 009 #include <regex.h> 010 #include <time.h> 011 #include <sys

regex.h in msys2 (windows )

对着背影说爱祢 提交于 2020-06-17 14:10:15
问题 I am trying to compile cvs-fast-import (https://gitlab.com/esr/cvs-fast-export) on windows running msys2 but when I run make I get an error: main.c:9:10: fatal error: regex.h: No such file or directory This referrs to main.c which looks like this: 001 /* 002 * Copyright © 2006 Keith Packard <keithp@keithp.com> 003 * 004 * SPDX-License-Identifier: GPL-2.0+ 005 */ 006 #include "cvs.h" 007 #include <unistd.h> 008 #include <getopt.h> 009 #include <regex.h> 010 #include <time.h> 011 #include <sys

Msys2: readline in two python installations

血红的双手。 提交于 2020-05-24 05:14:43
问题 I am top-posting EDITs so the reader does not need to locate the current status. This is a specific question related to the two python installations mentioned in Msys2: Maintaining two python installations $ pacman -Sl | grep "python " | grep "installed" mingw64 mingw-w64-x86_64-python 3.8.2-2 [installed] msys python 3.8.2-1 [installed] EDIT #2 : It became clear that readline s quoted below were not python packages, but for shells. As for readline for python, the files provided by each

Msys2: Maintaining two python installations

杀马特。学长 韩版系。学妹 提交于 2020-05-09 08:33:07
问题 I am using Msys2 portable under Win 10. I have 2 python 3.8 installations. The original question asked if that is so. I am now certain it is, so for the time being I want to deal with their maintenance. I also posted another related question Msys2: readline in two python installations I am posting below information on both. My questions are: Can they interfere with each other? If so, what steps/configuration should I deal with? ( PYTHONPATH , site-packages , etc.) Would it be safe removing