Mingw, code: block, and wxWidgets are three well-known open-source programs: compiler, IDE, and interface library. The fully-Open Source pure C ++ Development Environment built with these three features is no less than visual C ++. (Of course, there are no ASP and integrated SQL functions) first go to www.mingw.org to download the following file: gcc-coregcc-G ++ binutils
Mingw-runtime
Mingw-utils
W32-api
Mingw32-make
GDB then decompress and install these files to the same directory, such as C:/mingw. In this way, the compiler is ready. To facilitate later compilation, create a setvar. bat under C:/mingw with the following content: Set Path = C:/mingw/bin; % PATH %, to the http://forums.codeblocks.org/index.php? Board = 20.0 download the latest code: block,when the mingwm10.7zand wxmsw26_gcc_cb.7z are also downloaded, code: block should work with the DLL in the two compressed packages. Extract the three packages to a directory, such as C:/codeblock. Run C:/codeblock/codeblocks.exe. During the first run, select mingw as the default compiler. Then select [settings/compiler and debugging], select the [programs] label in the pop-up dialog box, and enter the mingw directory in the compiler's installation directory, where C: /mingw. Next, let's take a look at the bottom make programme and change it to mingw32-make.exe(when this value is make.exe ). In this way, the IDE and compiler are ready. Now you can create a new console project for compilation. If you want to use the win api in a program, you can directly reference # include <windows. h>. The following describes how to build the wxWidgets environment. To prepare-F makefile. GCC monolithic = 1 shared = 1 Unicode = 1 build = release en ...... In general, the following is the rest time ............ After the rest, compilation should be completed. Create a wxWidgets project in code: Block, enter C:/wxWidgets when selecting the wxWidgets path, and then select "enable DLL" and "enable Unicode" at the end ", after clicking confirm, the warning dialog box does not pop up, proving that wxWidgets has been compiled successfully. At this time, you can compile the new project and try it out. Note that you should test mingw10.dll and C:/wxWidgets/lib/gcc_dll/wxmsw26u_gcc_custom.dll to the compiling directory. Otherwise, the system will prompt that the DLL cannot be found during running. Strangely, if I use: mingw32-make-F makefile. GCC monolithic = 1 shared = 0 Unicode = 1 build = release to generate a static Link Library, compilation is fine. In the Code: block project, "enable DLL" is also created, but the system prompts "no relevant configuration file is found" and compilation cannot be completed, really depressing ...... In addition, when compiling stlport, mingw always prompts "incorrect syntax", which is even more depressing ...... PS was just a flash of inspiration, and a set of msys (also on the mingw webpage) was launched. In the msys environment, stlport compilation seems to have been successful ......