Multiple “could not be resolved” problems using Eclipse with minGW

Go to Project -> Properties -> C/C++ General -> Preprocessor Include Paths, Macros, etc. -> Providers -> CDT GCC built-in compiler settings, deactivate Use global provider shared between projects and add the command line argument -std=c++11. The eclipse live code analysis does not share the same settings with the build compiler. You can also change … Read more

Change the location of the ~ directory in a Windows install of Git Bash

I don’t understand, why you don’t want to set the $HOME environment variable since that solves exactly what you’re asking for. cd ~ doesn’t mean change to the root directory, but change to the user’s home directory, which is set by the $HOME environment variable. Quick’n’dirty solution Edit C:\Program Files (x86)\Git\etc\profile and set $HOME variable … Read more

Undefined reference to WinMain (C++ MinGW)

This example code uses wWinMain but One thing to note is that Visual C++ supports a “wWinMain” entry point where the “lpCmdLine” parameter is a “LPWSTR”. You would typically use the “_tWinMain” preprocessor definition for your entry point and declare “LPTSTR lpCmdLine” so that you can easily support both ANSI and Unicode builds. However, the … Read more

Git Bash is extremely slow on Windows 7 x64

You can significantly speed up Git on Windows by running three commands to set some config options: git config –global core.preloadindex true git config –global core.fscache true git config –global gc.auto 256 Notes: core.preloadindex does filesystem operations in parallel to hide latency (update: enabled by default in Git 2.1) core.fscache fixes UAC issues so you … Read more