"C:\MinGW\lib\wx\include\msw-ansi-release-static-2.8" Project properties -> C/C++ Build -> Settings -> Tool Settings tab -> GCC C++ Compiler/Directories: add include path EDIT 2: ensure “index unused headers as C++ files” is checked. Project properties -> C/C++ General -> Indexer: enable project-specific settings. For GNU C++, add directory ‘C:\MinGW\include\wx-2.8’ for all configurations. Project properties -> C/C++ General -> Path and Symbols -> Includes tab. Project properties -> C/C++ General -> Path and Symbols: set active configuration to ‘Release’
Launch MSYS, and input the following commands (these last two commands may take upwards of ten minutes each to execute, depending on your computer’s performance):.At this point, Eclipse should be able to compile non-wxWidget C++ apps. Install Eclipse and its CDT (C++) development perspective.Prepend ‘C:\MinGW\bin C:\msys\1.0\bin ’ as the ‘Path’ Windows environmental variable.Eclipse 3.5 “Ganymede” with CDT Plug-in.
#Eclipse how to install with mingw and msys pro#
A Windows environment (in my case, Windows 7 Pro 64-bit).
Multi-platform support is then simply a matter of changing the wxWidgets library from one OS’s version to another.
#Eclipse how to install with mingw and msys code#
WxWidgets provides a large set of C++ libraries which will act as an intermediary between my code and operating system-specific calls, such as window handling, networking and disk access. In the following guide, I wanted the wxWidgets library statically compiled so that the compilation’s end result is one stand-alone executable which requires nothing else to run. The idea behind writing in C++ is to remove the dependency of my usual Java runtime environment, and instead use the wxWidgets project to build a C++ project which can be compiled for any architecture it supports (Windows/Linux/Mac). I’ve recently gotten interested lately in “write once, run everywhere” apps for C++, where we don’t have the luxury of a Java or similar virtual machine.