mingw-w64

What is difference between sjlj vs dwarf vs seh?

独自空忆成欢 提交于 2020-01-18 08:12:08
问题 I can't find enough information to decide which compiler should I use to compile my project. There are several programs on different computers simulating a process. On Linux, I'm using GCC. Everything is great. I can optimize code, it compiles fast and uses not-so-much memory. I do my own benchmark with MSVC and GCC compilers. Later one produces slightly faster binaries (for each subarchitecture). Though compile time is much more than MSVC. So I decided to use MinGW. But can't find any

Compiling c program with MinGW causes cc1.exe fatal error

杀马特。学长 韩版系。学妹 提交于 2020-01-16 07:41:18
问题 I installed MinGW-w64 using win-builds. It all went ok but then when I compile a file using gcc -Wall -o prog.exe main.c I get this error cc1.exe: fatal error: Files/win-builds-1.5.0/include: No such file or directory compilation terminated. I have updated gcc path. I get the same error when I try to build on eclipse. The location where win-builds put all the files is C:\Program Files\win-builds-1.5.0\ and the folder \include\ exists. My guess is that cc1.exe is trying to access C:\Program

Compiling cpputest with mingw-w64

为君一笑 提交于 2020-01-16 02:26:31
问题 I'm trying to compile cpputest with mingw-w64 but can't make it work and I can't find any resources on how to do that. So hopefully this question will help others in the future. I would like to compile cpputest using mingw-w64, preferably without installing MSYS2 or other packages. I have mingw-w64 i686-8.1.0-posix-dwarf-rt_v6-rev0 installed. I've cloned cpputest from here. I tried following Compiling Google test with Mingw-w64 and Compiling and using CppUTest 3.8 under MSYS2/MinGW32 by

Configure options for building MinGW-64 on linux-64 for linux-64 (ultimately targetting windows-64)

孤者浪人 提交于 2020-01-14 09:46:06
问题 I want to build MinGW-w64 where: A: I want to compile MinGW itself on Linux (64-bit). B: I want the MinGW tools (compiler, etc) to run on Linux (64-bit). C: I want the MinGW tools (compiler, etc) to produce code that runs on Windows 64-bit (Win7 & Win8). I'm having trouble at the configure stage. I've googled around a bit but I can't find out what options I need to pass to configure. I have downloaded the source for MinGW-w64 SVN from (https://svn.code.sf.net/p/mingw-w64/code/trunk/). (AFAICT

How to use a Visual Studio static library from mingw-w64?

北战南征 提交于 2020-01-14 06:00:11
问题 The title is pretty self explanatory: I need to call functions (they are extern "C" so no mangling) in a Visual Studio 2019 .lib file from a mingw-w64 .exe ; I have the source code for both. The reason is that I'm writing a 3D game with 2 renderers: OpenGL and Direct3D 11, and the core code and the OpenGL renderer are compiled with mingw-w64, but the D3D11 part is compiled with VS. How to interoperate between them? Can I merge both renderers into one .a (mingw-w64) static library or one .dll

Netbeans and MinGW-w64

限于喜欢 提交于 2020-01-09 05:10:07
问题 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

Have a 32-64bit problem with OpenCV and Qt

萝らか妹 提交于 2020-01-06 01:57:29
问题 I have used OpenCV 3.2.0 since a long time ago. Recently, I need to implement face detection with landmark detection so I decided to build the OpenCV again with extra OpenCV modules. However, it seems that OpenCV 3.2.0 is not compatible with the latest extra OpenCV modules so I have to build it with the latest OpenCV (which is 4.0.0) The problem is, I'm in a Catch 22 situation. 1. If I use mingw 32bit 5.1.0 to build OpenCV (which is a compiler bundled with Qt), I have a following error

Have a 32-64bit problem with OpenCV and Qt

こ雲淡風輕ζ 提交于 2020-01-06 01:57:05
问题 I have used OpenCV 3.2.0 since a long time ago. Recently, I need to implement face detection with landmark detection so I decided to build the OpenCV again with extra OpenCV modules. However, it seems that OpenCV 3.2.0 is not compatible with the latest extra OpenCV modules so I have to build it with the latest OpenCV (which is 4.0.0) The problem is, I'm in a Catch 22 situation. 1. If I use mingw 32bit 5.1.0 to build OpenCV (which is a compiler bundled with Qt), I have a following error

How to compile vim 64-bit on windows using MinGW-64?

♀尐吖头ヾ 提交于 2020-01-01 19:01:16
问题 I tried to compile vim 64-bit on windows. But I don't know how to use MinGW-64. There's a mingw-32-make in the 32-bit version, which I could use to build. But I didn't find any 'make' program in the 64-bit MinGW. Could you please tell me how to use mingw-64, or any tutorial I could follow? Thank you. 回答1: It does not matter from which source make program comes, it only just must be able to execute the Makefile. To compile vim with MinGW with specific compiler and Make_ming.mak makefile I used

MinGW GCC 4.9.1 and floating-point determinism

早过忘川 提交于 2020-01-01 04:33:48
问题 I wrote a small program to compute the Euclidean norm of a 3-coordinate vector. Here it is: #include <array> #include <cmath> #include <iostream> template<typename T, std::size_t N> auto norm(const std::array<T, N>& arr) -> T { T res{}; for (auto value: arr) { res += value * value; } return std::sqrt(res); } int main() { std::array<double, 3u> arr = { 4.0, -2.0, 6.0 }; std::cout << norm(arr) - norm(arr) << '\n'; } On my computer, it prints -1.12323e-016 . I know that floating point types