6、双击codeblocks-10.05mingw-setup,安装目录最好别有中文或空格,组件根据自己的需要进行选择,完成后会在桌面生成一个CodeBlocks图标; 7、双击桌面上的CodeBlocks图标,会提示选择一个默认的编译器,选择GNU GCC Compiler,File associations中选择Yes,associate Code::Blocks with C/C++ file types; 8、创建一个简单的控制台应用程序:FileàNewàProject…àProjects,选中Console application,点击GoàNextà选中C++,点击NextàProject title:projiect1;Folder to create project in:F:\test\codeblocks; Project filename:project1.cbp; Resulting filename:F:\test\codeblocks\project1\project1.cbp;点击Nextà默认,点击Finish,会默认生成一个main.cpp文件,编译运行即可。 9、下载wxMSW-Setup-2.9.3; 10、双击wxMSW-Setup-2.9.3.exe,连续点击Next,点击Finish; 11、打开命令行界面,进入c:\wxWidgets-2.9.3\build\msw目录下,分别执行 mingw32-make -f makefile.gcc clean mingw32-make -f makefile.gcc MONOLITHIC=0 SHARED=1 UNICODE=1 BUILD=release mingw32-make -f makefile.gcc MONOLITHIC=0 SHARED=1 UNICODE=1 BUILD=debug 命令,分别编译Release和Debug版本库; 12、打开CodeBlocks,FileàNewàProject…àProjects,选中wxWidgets project,点击Go,Nextà选中wxWidgets2.9x(SVN Version)àNextàProject title:project2; Folder to create project in:F:\test\codeblocks;àNext,随意输入àNext,在Preferred GUI Builder中选中wxSmith,Application Type中选中Dialog BasedàNext,在wxWidgets’ location中C:\wxWidgets-2.9.3àNext,在wxWidgets Library Settings中选中Use wxWidgets DLL 和Enable unicode,其它默认àNextàFinish,编译,运行即可。
相关文章: