mingw-w64

MinGW-w64 offline installer

我只是一个虾纸丫 提交于 2019-11-28 20:49:51
is there any way to install mingw-w64 offline ? I tried many official sources and all of them seem to need some sort of internet access. I'm looking for something that works for both x32 and x64 systems. I tried to have a look at the official repository but I am not sure which files I need for this task. Thanks in advance ! Although the following isn't fully tested yet, an offline installer seems unnecessary. Based on some screenshots for a bug report, the online installer asks the following questions... Version .......... seems to be the GNU GCC version number Architecture ..... i686 / x86_64

How do I compile and link a 32-bit Windows executable using mingw-w64

烈酒焚心 提交于 2019-11-28 19:10:07
问题 I am using Ubuntu 13.04 and installed mingw-w64 using apt-get install mingw-w64 . I can compile and link a working 64-bit version of my program with the following command: x86_64-w64-mingw32-g++ code.cpp -o app.exe Which generates a 64-bit app.exe file. What binary or command line flags do I use to generate a 32-bit version of app.exe? 回答1: That depends on which variant of toolchain you're currently using. Both DWARF and SEH variants (which come starting from GCC 4.8.0) are only single-target

python生成动态库pyd

放肆的年华 提交于 2019-11-28 19:00:29
一、gcc下载安装: http://www.mingw-w64.org/doku.php/download https://sourceforge.net/projects/mingw-w64/files/mingw-w64/ MinGW-w64安装教程——著名C/C++编译器GCC的Windows版本 MinGW-w64离线安装 二、配置gcc环境变量: 要正常使用MinGW,还需要设置环境变量。 桌面-》鼠标右键单击我的电脑-》属性-》高级-》环境变量   –将C:\MinGW\bin加入PATH-----------------这是寻找gcc编译器的路径。   –将C:\MinGW\include加入INCLUDE---------这是Include查找头文件的路径。   –将C:\MinGW\lib加入LIB---------------------这是标准库存放的路径。 打开CMD在命令提示符下输入gcc –v,看到gcc版本信息,gcc安装OK 打开CMD在命令提示符下输入gdb –v,看到gdb版本信息,gdb安装OK 打开CMD在命令提示符下输入make –v,看到make版本信息,make安装OK 三、python安装Cython: 四、vs版本: Visual Studio version and discrimination macros 修改

Building a dll with Go 1.7

坚强是说给别人听的谎言 提交于 2019-11-28 18:27:12
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 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=c-shared I believe the headers are only compatible with GCC. If you're only exposing C-types, this should

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

妖精的绣舞 提交于 2019-11-28 16:19:01
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. but none of these have worked. P.S.: I use Windows Defender antivirus, and it is NOT making my Bash

opencv installation error while mingw32-make on windows

馋奶兔 提交于 2019-11-28 08:36:09
问题 opencv installation using mingw32-make command in windows 10 platform, then likely end up in getting the below error. Windows version : 10 OpenCv:3.2.0 Please suggest me in installing. D:\installers\opencv\sources\modules\ts\src\ts_gtest.cpp: In constructor 'testing::internal::Mutex::Mutex()': D:\installers\opencv\sources\modules\ts\src\ts_gtest.cpp:8829:45: error: cannot convert 'CRITICAL_SECTION* {aka _CRITICAL_SECTION*}' to '_RTL_CRITICAL_SECTION*' in initialization critical_section_(new

Entry Point Not Found Error on running c++ .exe file after compiling with mingw g++

你说的曾经没有我的故事 提交于 2019-11-28 06:27:12
问题 I am using the latest MinGW to compile my c++ code with g++ compiler on Windows 10. The code compiles without errors but when I run the execution file it gives the error: The procedure entry point _ZNSt6chrono3_V212system_clock3nowEv could not be located in the dynamic link library A:\Code\DAA Assignments\2\outputunsorted1.exe The confusing part is that the same code runs totally fine when compiled with cygwin but gives this error only in MinGW. I also tried reinstalling MinGW multiple times.

Meaning of options in mingw-w64 installer

风格不统一 提交于 2019-11-28 03:49:05
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 Exception , options dwarf and sjlj Build revision , options 0 , 1 , 2 . The values I chose on my

“Dual-target” MinGW-w64 isn't really dual-target?

风流意气都作罢 提交于 2019-11-27 17:48:36
问题 When I try to compile a 32-bit program on a 64-bit host with MinGW-builds: T:\mingw64>.\bin\g++ -m32 Test.cpp I get: t:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible t:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.0/libstdc++.dll.a when searching for -lstdc++ t:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible t:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.0

Netbeans and MinGW-w64

可紊 提交于 2019-11-27 14:32:32
I'm trying to configure my NetBeans on win7 64bit, to work with the MinGW-w64. So I put in the %PATH% variable the following paths of the compiler: C:\mingw-w64-bin_i686\mingw\bin C:\minGw-MSYS\msys\bin C:\mingw-w64-bin_i686\libexec\gcc\x86_64-w64-mingw32\4.7.0 Then I opened NetBeans and this was configured: The configuration in NetBeans I tried to compile a little test program but I received this error: g++.exe: fatal error: -fuse-linker-plugin, but liblto_plugin-0.dll not found compilation terminated. make[2]: * [dist/Debug/MinGW-Windows/test.exe] Error 1 make 1 : [.build-conf] Error 2 make: