mingw32

Undefined reference to WinMain (C++ Mingw)

天涯浪子 提交于 2020-08-26 04:42:09
问题 currently I am trying to make a windows application using c++. For compiling my program I use Mingw GCC. Btw I'm on Windows 10. But as soon as I use int WINAPI wWinMain(HINSTANCE hInstance, HINSTANCE, PWSTR pCmdLine, int nCmdShow) instead of int main() the compiler shows me following message: C:/mingw-w64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/lib/../lib/libmingw32.a(lib64_libmingw32_a-crt0_c.o):crt0_c.c:(.text.startup+0x2e): undefined reference to

Setting colors for ls in git bash on windows

最后都变了- 提交于 2020-06-24 00:50:19
问题 I have installed GitHub for Windows recently and am using the git bash prompt - the one thing that is bugging me right now is when I type LS all directories are listed in blue. How do I change my git bash shell so that when I type LS the directories are listed in a different color to blue? 回答1: This is not specifically a git issue but more the shell that you are using. On MINGW32 using Git 2.9+: C:\Program Files\Git\etc\ bash.bashrc # Uncomment to use the terminal colours set in DIR_COLORS

How to install mingw32 on Ubuntu?

ぃ、小莉子 提交于 2020-02-27 05:07:27
问题 I would like to install mingw32 on my Ubuntu (16.10) cuz I would like to generate an x86 windows version of my application. The "i586-mingw32msvc-g++" executable is needed by my Makefile (CMake). I tried "sudo apt install mingw32" but it doesn't work (I have a "package not found" error). 回答1: Look more closely at what is actually available: edd@max:~$ apt-cache search mingw- libassuan-mingw-w64-dev - IPC library for the GnuPG components -- Windows port libgcrypt-mingw-w64-dev - LGPL Crypto

Access denied when building a project

≯℡__Kan透↙ 提交于 2020-01-15 12:43:13
问题 I’m working on a project with opencv lib. I use Qt 4.8 on Windows 7 and it gives me an error when building the project: mingw32-make.exe[1]: *** Access is denied. . Stop. mingw32-make.exe: *** [release] Error 2 19:05:06: The process "F:\QtSDK\mingw\bin\mingw32-make.exe" exited with code 2. Error while building project TraySystemtry (target: Desktop) When executing build step 'Make' The pro file: QT += xml svg core gui CONFIG += qt VERSION = 0.3.0 TEMPLATE = app INCLUDEPATH += D:\OpenCV\opencv

Compiling C++ in cmd using MinGW on Windows 8

北城以北 提交于 2020-01-06 14:43:11
问题 I'm trying to compile c++ programs from the commandline, but I can't. I tried all the steps and instructions listed here. I got MinGW installed, but I get stuck in the last step of the installation that explains how to change environment paths. There simply isn't PATH part of it on the environment variables, and when I try to add it or even edit the one in System variables, compiling doesn't work (nothing comes up when I type g++ on the command prompt). I've searched online for solutions, but

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

About stdafx.h missing in my compiler(mingw32 on windows)

心已入冬 提交于 2020-01-05 01:35:10
问题 I just have a quick question. I've noticed that I don't have stdafx.h in my compiler(mingw32 on windows) Am I supposed to have it? Or maybe is there a way to get around it? Thanks for reading EDIT: ok here is my current build log once I took out ALL of the includes of stdafx.h http://pastebin.com/bczLr8xY 回答1: Read this wikipedia article. The paragraph I linked and the paragraph below it (mingw32 uses GCC). http://en.wikipedia.org/wiki/Precompiled_header#stdafx.h Since stdafx.h contains the

Is there a better way to remove all of the three buttons on the title-bar and remove the scroll-bar using Windows API?

夙愿已清 提交于 2020-01-01 06:54:43
问题 The code removing all of the three buttons on the title-bar and removing the scroll-bar I use in "Windows 7" so far is listed: #define WINVER 0x0501 // WinXP and UP #include <windows.h> int main ( void ) { //Get a console handle HWND ConsoleWindow = GetConsoleWindow(); //Change Settings SetWindowLong (ConsoleWindow, GWL_STYLE, WS_THICKFRAME); SetWindowLong (ConsoleWindow, GWL_STYLE, WS_CAPTION); SetWindowPos (ConsoleWindow, HWND_TOPMOST, 0, 0, 0, 0, SWP_FRAMECHANGED | SWP_SHOWWINDOW); /

GLFW MinGW link error

社会主义新天地 提交于 2019-12-31 22:41:24
问题 I've been attempting to test out GLFW with C++ for quite a while and am having constant linker issues. I am fairly new to C++, although I have experience in Java and C#, working directly with the compiler is fairly new to me. Here's my setup information. IDE: Qt Creator OS: Windows 7 64-bit Compiler: MinGW32 4.8.1 01:23:26: Starting: "C:\MinGW\bin\mingw32-make.exe" C:/MinGW/bin/mingw32-make -f Makefile.Debug mingw32-make[1]: Entering directory 'A:/workspace_cpp/Test-Debug' g++ -Wl,-subsystem