mingw-w64

Building a dll with Go 1.7

拈花ヽ惹草 提交于 2019-11-27 11:33:50
问题 Is there a way to build a dll against Go v1.7 under Windows ? I tried a classic go build -buildmode=shared main.go but get -buildmode=shared not supported on windows/amd64 update Ok, I've got my answer. For those who are interested : https://groups.google.com/forum/#!topic/golang-dev/ckFZAZbnjzU 回答1: As of Go 1.10, -buildmode=c-shared is now supported on Windows. Release notes: https://golang.org/doc/go1.10#compiler So now compiling to DLL is a one-liner: go build -o helloworld.dll -buildmode

Git Bash (mintty) is extremely slow on Windows 10 OS

情到浓时终转凉″ 提交于 2019-11-27 09:46:10
问题 I installed Git on my Windows 10 a couple of months ago. It worked fine for some time. But now, it's running so slow. The git status command takes 7 seconds to execute, and git stash takes many minutes for stashing (even if there is nothing to stash). Also, I would like to point out that git status prints the result instantaneously, but I can not enter a new command for a few seconds as shown in the image below. I have tried surfing the net for solutions to my problem like this, this, etc.

Regex Boost library linking in release mode warns “duplicate section has different size” when using mingw-w64 toolchain

老子叫甜甜 提交于 2019-11-27 07:40:08
问题 When linking my project in the release mode I am getting the following warning: myProject-libs/release/libboost_regex-mt-s-1.50.0.a(cpp_regex_traits.o): duplicate section `.data$_ZZN5boost16cpp_regex_traitsIcE21get_catalog_name_instEvE6s_name[boost::cpp_regex_traits<char>::get_catalog_name_inst()::s_name]' has different size I suspect that the cause could be that the boost library is compiled with different options than I use for my project, but I don't know how to find the difference (boost

Meaning of options in mingw-w64 installer

随声附和 提交于 2019-11-27 00:03:29
问题 In the MinGW-W64 online installer there are several fields you can select. However I cannot find any documentation on this, and the guesses I've made don't give me the behaviour I want. Clearly a lot of work has gone into this project so it seems a pity that uptake is being held back by lack of basic documentation. The "Version" and "Architecture" fields are self-explanatory but the other fields I have trouble with are (values shown as of current installer): Threads , options posix and win32

How to install MinGW-w64 and MSYS2?

可紊 提交于 2019-11-26 19:18:14
I am trying to build some open source library. I need package management system to easily download the dependencies. At first I am using MinGW+MSYS . But the included packages are limited. Someone told me to use MinGW-w64 + MSYS2 . I downloaded the mingw-w64-install from here . When running, it reports the following error. How to fix it? And btw, from the MinGW-w64 download page, I see a lot of download links. Even Cygwin is listed. How Cygwin and MinGW-w64 are related? My current understanding is, in the time of MinGW+MSYS , MSYS is just a nice addon to MinGW, while in MinGW-w64 + MSYS2 ,

Does MinGW-w64 support std::thread out of the box when using the Win32 threading model?

China☆狼群 提交于 2019-11-26 16:38:54
I have opted for the Win32 threading model when installing the MinGW-w64 toolchain, after reading that it provides better performance than the POSIX counterpart. I am not qualified for benchmarking this claim myself, but here's a source for it . At first I thought this option would only affect the inner workings of the GCC runtime, while not preventing me from using C++11 threads in my code, based on this answer and this comment by fellow user rubenvb . However, this doesn't seem to be the case. std::thread support appears to be non-existent in this MinGW-w64 installation. I am invoking g++

Does MinGW-w64 support std::thread out of the box when using the Win32 threading model?

谁都会走 提交于 2019-11-26 05:58:45
问题 I have opted for the Win32 threading model when installing the MinGW-w64 toolchain, after reading that it provides better performance than the POSIX counterpart. I am not qualified for benchmarking this claim myself, but here\'s a source for it. At first I thought this option would only affect the inner workings of the GCC runtime, while not preventing me from using C++11 threads in my code, based on this answer and this comment by fellow user rubenvb . However, this doesn\'t seem to be the

How to install MinGW-w64 and MSYS2?

南笙酒味 提交于 2019-11-26 04:58:28
问题 I am trying to build some open source library. I need package management system to easily download the dependencies. At first I am using MinGW+MSYS . But the included packages are limited. Someone told me to use MinGW-w64 + MSYS2 . I downloaded the mingw-w64-install from here. When running, it reports the following error. How to fix it? And btw, from the MinGW-w64 download page, I see a lot of download links. Even Cygwin is listed. How Cygwin and MinGW-w64 are related? My current