mingw

qt designer的插件

て烟熏妆下的殇ゞ 提交于 2020-07-23 20:05:11
release 必须要release下,把dll复制到C:\Qt\Qt5.13.0\5.13.0\mingw73_64\plugins\designer 然后就可以在designer中看到自定义的插件 点击帮助-----关于插件 就可以看到插件 debug与release生成库的区别 debug下的dll库末尾带d release:::customwidgetplugin.dll libcustomwidgetplugin.a debug:: customwidgetplugind.dll libcustomwidgetplugind.a 来源: oschina 链接: https://my.oschina.net/u/4406404/blog/4330974

CMake: Cross-compiling linux-to-windows with MinGW does not find some system headers

倖福魔咒の 提交于 2020-07-22 09:28:34
问题 I am trying to cross-compile from Linux to Windows with MinGW a project configured with CMake, and some of the system headers are not found. This is the kind of errors I am getting: [ 1%] Building C object src/CMakeFiles/exiv2lib_int.dir/localtime.c.obj cd /home/luis/programming/buildExiv2Mingw/src && /usr/bin/x86_64-w64-mingw32-gcc-posix -Dexiv2lib_STATIC @CMakeFiles/exiv2lib_int.dir/includes_C.rsp -o CMakeFiles/exiv2lib_int.dir/localtime.c.obj -c /home/luis/programming/exiv2/src/localtime.c

Imitate Visual C++ with MinGW or other C++ compilers (for Python packages based on Visual C++)

僤鯓⒐⒋嵵緔 提交于 2020-07-08 00:47:55
问题 Is there a way to use MinGW as a substitute of MS Visual C++? A lot of Python packages need VS C++ to be installed: 4.5 GB of disk space! MinGW takes only 450 MB and reaches the same aim to compile C/C++. I am using Visual Studio Code, and I try to avoid the Microsoft Visual C++ installation that is proposed here under 3) --> You can also install just the C++ Build Tools : https://code.visualstudio.com/docs/cpp/config-msvc/#_prerequisites Perhaps there is just a trick needed to imitate MS

undefined reference to SDL_Init

假如想象 提交于 2020-07-06 12:58:33
问题 I started using SDL today and had some trouble before, now I got it running but it won't let me init it. This is my code: #include <iostream> #include "SDL.h" #undef main using namespace std; int main(){ if(SDL_Init(SDL_INIT_EVERYTHING)<0){ cout << "error starting sdl" << endl; } return 0; } This the build log: -------------- Build: Debug in Graphics (compiler: GNU GCC Compiler)--------------- mingw32-g++.exe -Wall -g -std=c++11 -IC:\Users\73638G75MA\Documents\SDL2-2.0.3\x86_64-w64-mingw32

C programs getting detected as Malware

白昼怎懂夜的黑 提交于 2020-07-03 05:21:06
问题 Recently my C programs started to act weirdly and I had no idea why... Then I realized that they were being flagged by my antivirus program as malware... First I thought there's a malware in my compiler (I'm using CodeBlocks IDE with MinGW-GCC as c compiler), Antivirus scan returned nothing. So I started experimenting on it... I wrote a simple hello world using c #include <stdio.h> int main() { printf("Hello"); return 0; } Soon as I compiled it windows defender flagged it as Trojan:Win32

Is clock_gettime() correctly implemented in MinGW GCC 8.2.0?

我们两清 提交于 2020-06-29 04:04:16
问题 By chance, I found out about the existence of the clock_gettime() function for Linux systems. Since I'm looking for a way to measure execution time of a function, I tried it in the MinGW gcc 8.2.0 version on a Windows 10 64-bit machine: #include <time.h> #include <stdio.h> int main() { struct timespec tstart, tend; clock_gettime(CLOCK_THREAD_CPUTIME_ID, &tstart); for (int i = 0; i < 100000; ++i); clock_gettime(CLOCK_PROCESS_CPUTIME_ID, &tend); printf("It takes %li nanoseconds for 100,000

Fatal error: iostream: No such file or directory #include <iostream>

最后都变了- 提交于 2020-06-28 14:28:09
问题 I encountered a problem when I was learning C++, and encountered errors when I was compiling it. The details are as follows: 回答1: You seem to have not installed C++ support in MinGW. If you are using the manual installation route, download the gcc-c++ dev, dll, and bin files. If you are using the automated GUI installer (recommended for newcomer to C++), make sure to check the C++ package: 回答2: It seems you have not chosen C++ optional compiler/dev package in mingw32 installer. C++ dev

C compiler broken: is not able to compile a simple test program

孤街醉人 提交于 2020-06-28 04:25:14
问题 On my Dektop and on my Surface Pro 6 CLion has stopped working and I don´t know exactly why. That is written on my Desktop: "C:\Program Files\JetBrains\CLion 2018.3.2\bin\cmake\win\bin\cmake.exe" -DCMAKE_BUILD_TYPE=Debug -G "CodeBlocks - MinGW Makefiles" C:\Users\Alexander\Desktop\Clion\übung -- The C compiler identification is GNU 6.3.0 -- Check for working C compiler: C:/MinGW/bin/gcc.exe -- Check for working C compiler: C:/MinGW/bin/gcc.exe -- broken CMake Error at C:/Program Files

Code::Blocks MinGW Windows Defender Trojan:Win32/Fuery.C!cl

隐身守侯 提交于 2020-06-26 06:18:08
问题 I'm testing a simple "hello world" program in Code::Blocks 20.03 and MinGW (GCC Build-20200227-1 9.2.0, installed separately), but I got no message on console when running it: At first I thought it was a compiler issue due to that "no target" in "no project" message, but then I realized the problem was Windows Defender blocking the .exe file, saying the program contains: Trojan:Win32/Fuery.C!cl In this topic this issue was related before, but it seems it is happening again. I've manually

Can't download MinGW from Sourceforge

谁说我不能喝 提交于 2020-06-25 07:56:20
问题 I wanted download MinGW C and C++ gnu compiler from Sourceforge using mingw-get-inst-20120421.exe. It gives me an option to download pre-packaged repository or latest one. When I am behind Kaspersky AV firewall latest one fails. Pre- one fails in any case. In any case they don't install gcc.exe at all. This is the image of my mingw/bin directory: http://img163.imageshack.us/img163/5953/capturephw.jpg mingw-get.exe: *** WARNING *** http://prdownloads.sourceforge.net/mingw/pkginfo-0.5-mingw32