mingw-w64

MinGW-w64's gcc and Address Sanitizer

╄→гoц情女王★ 提交于 2019-11-30 06:58:11
Installing MinGW-w64 5.1 I find -fsanitize=address is available. It compiles fine, and when it starts linking I get thousands of: undefined reference to '__asan_report_load1' undefined reference to '__asan_report_load4' I googled and found libasan referenced various places, but also comments that when you include -fsanitize=address it automatically includes that library for linking. I searched the MinGW-w64 5.1 install dirctory for "asan" and it was not found anywhere. What do I need to add on to use address sanitizing features in MinGW-w64? Thank you. I've looked quickly into release notes

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

我只是一个虾纸丫 提交于 2019-11-29 21:28:57
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? Alexander Shukaev 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. You can see it yourself by inspecting the directory structure of their distributions, i

Why is “MINGW64” appearing on my Git bash?

时光怂恿深爱的人放手 提交于 2019-11-29 20:25:36
I had to format my laptop, and so I had to install Git again. However it is quite different from the one I had yesterday, the icon is not the default orange one anymore, it looks more like Chrome now. The bash is quite different, including a purple " MINGW64 " in every line. Why is it there? Is this the new final version? Or did I download something different? I downloaded https://github.com/git-for-windows/git/releases/download/v2.5.1.windows.1/Git-2.5.1-64-bit.exe from https://git-scm.com/downloads . Thanks! This is the new icon being used with Git for Windows 2.x . The website needs an

opencv installation error while mingw32-make on windows

冷暖自知 提交于 2019-11-29 14:44:40
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 CRITICAL_SECTION) { ^ D:\installers\opencv\sources\modules\ts\src\ts_gtest.cpp:8830:48: error: cannot

Wrapper for `__m256` Producing Segmentation Fault with Constructor - Windows 64 + MinGW + AVX Issues

走远了吗. 提交于 2019-11-29 10:37:11
I have a union that looks like this union bareVec8f { __m256 m256; //avx 8x float vector float floats[8]; int ints[8]; inline bareVec8f(){ } inline bareVec8f(__m256 vec){ this->m256 = vec; } inline bareVec8f &operator=(__m256 m256) { this->m256 = m256; return *this; } inline operator __m256 &() { return m256; } } the __m256 needs to be aligned on 32 byte boundary to be used with SSE functions, and should be automatically, even within the union. And when I do this bareVec8f test = _mm256_set1_ps(1.0f); I get a segmentation fault. This code should work because of the constructor I made. However,

How to use varargs in conjunction with function pointers in C on Win64?

喜夏-厌秋 提交于 2019-11-29 07:21:50
Consider the following C program: #include <stdio.h> #include <stdarg.h> typedef void (callptr)(); static void fixed(void *something, double val) { printf("%f\n", val); } static void dynamic(void *something, ...) { va_list args; va_start(args, something); double arg = va_arg(args, double); printf("%f\n", arg); } int main() { double x = 1337.1337; callptr *dynamic_func = (callptr *) &dynamic; dynamic_func(NULL, x); callptr *fixed_func = (callptr *) &fixed; fixed_func(NULL, x); printf("%f\n", x); } Basically, the idea is to store a function with variable arguments in a "generic" function pointer

OpenMP for MinGW w64?

那年仲夏 提交于 2019-11-29 06:48:22
Are there any OpenMP binaries out there for the MinGW-w64 GCC compiler (Windows)? There is TDM-GCC (Windows) and sezero's Personal Build (Linux and Windows). update 2012/11: Distribution Host OS MinGW-w64 Cygwin, Darwin, Linux and Windows TDM-GCC Windows MinGW-builds Windows 来源: https://stackoverflow.com/questions/5532826/openmp-for-mingw-w64

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

风格不统一 提交于 2019-11-29 03:48:51
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/libstdc++.a when searching for -lstdc++ t:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.0/../../../..

Build Python with Mingw and gcc

不打扰是莪最后的温柔 提交于 2019-11-29 02:48:45
问题 Is it possible to build Python interpreter from source with Mingw and gcc on Windows 7? And I would like to biuld a 64bit version. If a 64bit Python (gcc Mingw) version is available for download please let me know, I would use that also. At the end I still would like to compile it with gcc and mingw. 回答1: First off, you do not need to build Python with MinGW-w64 to link to it and embed a interpreter. Just extract the msi installer, and use the prebuilt DLL. Note you'll have to be careful not

MinGW-w32 vs. MinGW

泄露秘密 提交于 2019-11-28 21:09:05
What's the difference between the MinGW project and the 32-bit portion of the MinGW-w64 project? Does the 32-bit portion of MinGW-w64 have any relation to x64 at all? It seems like their compilers do the exact same things... One looks like it "cross compiles", from 64 bit to 32 bit, whereas the other looks native. That was just a quick look though, so I could be a long long way off the mark here...... EDIT: This is only somewhat true. A better explanation is provided here The MinGW from http://www.mingw.org/ does only support gcc 32 bit (host and target). The independent minGW-w64 project