ProjectManager, Project and ProjectFile in Code::Blocks

CB-Project-File Code Blocks IDE的内部实现中,关于项目和文件之间的关系和数据保存主要维护在Project,ProjectManager和ProjectFile这几个类里面。在ProjectManager里面有几个部分:1)View:包括m_pNotebook, m_pTree, m_plugin等;2)Status:包括m_isLoadingProject, m_isclosingProject, m_isCheckingForExternallyModifiedProject等,从字面意义上就可以看出它们的用途;3)Project:包括m_pActiveProject和指针*m_pProjects。这个当前活动的项目m_pActiveProject就是Project类的实例。

Continue reading ProjectManager, Project and ProjectFile in Code::Blocks - 全文阅读

Share and Enjoy:
  • Print this article!
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • LinkedIn
  • Live
  • MySpace
  • RSS
  • Slashdot
  • Technorati
  • TwitThis

Code::Blocks Debug Shortcut and Example

作为一个优秀的IDE,Code::Blocks自然也提供Debugger的功能,以下我们介绍如何使用Code::Blocks的Debugger和使用实例。下面是CodeBlocks Debug的快捷键定义(Shortcut key):

Debug - F8 ,Continue debugging - Ctrl + F7 ,Step over a code block  - F7

Step into a code block - Shift + F7,Step out of a code block - Ctrl + Shift + F7

Toggle breakpoint - F5Run to cursor - F4

Previous error - Alt + F1Next error - Alt + F2

Continue reading Code::Blocks Debug Shortcut and Example - 全文阅读

Share and Enjoy:
  • Print this article!
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • LinkedIn
  • Live
  • MySpace
  • RSS
  • Slashdot
  • Technorati
  • TwitThis

Code::Blocks IDE: 手动安装和配置编译器指南

GCC-Compiler 当第一次运行CodeBlocks IDE,它会自动扫描系统寻找支持的编译器。当扫描结束时,CodeBlocks会配置检测到的编译器,甚至为那些没有发现的编译器也会包括缺省的配置。这篇文章主要是指导你如何手动获取、安装和配置CodeBlocks可以使用的编译器。以下大体上按照操作系统不同分别讨论:。同时包含各种编译器的主页/下载地址可以方便你直接访问。

Continue reading Code::Blocks IDE: 手动安装和配置编译器指南 - 全文阅读

Share and Enjoy:
  • Print this article!
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • LinkedIn
  • Live
  • MySpace
  • RSS
  • Slashdot
  • Technorati
  • TwitThis

CodeBlocks下SDL编译成功实例

Cartoon-codeblocks-sdl-compile 1 首先去下载一份最新版的 CodeBlocks;2 在SDL官方下载一份SDL-MingW版;3 开始我们的SDL之旅吧

首先建立一个空的项目并且选择编译规则为;其次在编译和调试选项中设置好SDL的库目录。这里值得注意的是在项目工程属性中 编译目标 中的 选项设置类型为 applications;最后在编译和调试选项中的 连接设置中的 其他链接选项 输入-lmingw32 -lSDLmain –lSDL

Continue reading CodeBlocks下SDL编译成功实例 - 全文阅读

Share and Enjoy:
  • Print this article!
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • LinkedIn
  • Live
  • MySpace
  • RSS
  • Slashdot
  • Technorati
  • TwitThis

Setting up Code::Blocks to work with SDL - 多媒体编程库

tmobile-sdl - Simple DirectMedia Layer, is a cross-platform designed to provide low level access to audio, keyboard, mouse, joystick, 3D hardware via OpenGL, and 2D video framebuffer. It is used by MPEG playback software, emulators, and many popular games, including the award winning Linux port of "Civilization: Call To Power."

supports Linux, , CE, BeOS, MacOS, Mac OS X, FreeBSD, NetBSD, OpenBSD, BSD/OS, Solaris, IRIX, and QNX. The code contains support for AmigaOS, Dreamcast, Atari, AIX, OSF/Tru64, RISC OS, SymbianOS, and OS/2, but these are not officially supported.  is written in C, but works with C++ natively, and has bindings to several other languages, including Ada, C#, D, Eiffel, Erlang, Euphoria, Guile, Haskell, Java, Lisp, Lua, ML, Objective C, Pascal, Perl, PHP, Pike, Pliant, Python, Ruby, Smalltalk, and Tcl.  is distributed under version 2. This license allows you to use freely in commercial programs as long as you link with the dynamic library. – libsdl.org

Continue reading Setting up Code::Blocks to work with SDL - 多媒体编程库 - 全文阅读

Share and Enjoy:
  • Print this article!
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • LinkedIn
  • Live
  • MySpace
  • RSS
  • Slashdot
  • Technorati
  • TwitThis

QT4+MinGW+Code::Blocks IDE集成

qtplatforms13map再转载一篇关于QT安装和在Code Blocks中使用的文章,含有详细的步骤。关于QT的介绍:

Qt is a cross-platform application and framework. Using Qt, you can write applications once and deploy them across many desktop and embedded operating systems without rewriting the source code. Develop applications and user interfaces once, and deploy them across , Mac, Linux/X11, embedded Linux, CE and S60 (coming soon) without rewriting the source code.  - qtsoftware.com

Continue reading QT4+MinGW+Code::Blocks IDE集成 - 全文阅读

Share and Enjoy:
  • Print this article!
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • LinkedIn
  • Live
  • MySpace
  • RSS
  • Slashdot
  • Technorati
  • TwitThis

加法?减法:CodeLite or Code::Blocks just for another sourceinsight

china-03_07 Bryan Wu: cbforge at Gmail dot com.

一直受困于平台限制,也一直希望实现一个替代品。之前一直在阅读Code Blocks IDE的代码并且也移植了 进去以希望可以逐步实现这个目标。但是现在发现其实CodeLite更加接近这个目标,通过做减法可以很快实现一个简洁版本的开源,关键是跨平台。试用和通过一些修改,我想第一个试用版本的 Open source “”会很快和大家见面,不知道是不是会有人喜欢用?

工欲善其事,必先利其器也,我相信编程的朋友一定或多或少的通过受益,如果您也有同样的想法和时间,可以加入一起把这个想法实现并定制一些高级功能供大家使用。

Continue reading 加法?减法:CodeLite or Code::Blocks just for another sourceinsight - 全文阅读

Share and Enjoy:
  • Print this article!
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • LinkedIn
  • Live
  • MySpace
  • RSS
  • Slashdot
  • Technorati
  • TwitThis

Code::Blocks编译skyeye步骤

simulation Bryan注:原文前面关于C::B的介绍略去,这一篇文章主要是介绍编译Skyeye的步骤。

Skyeye是一款开源的软件仿真模拟器软件,可以用于嵌入式软件的开发调试,是由中国人开发的开源项目中比较突出的一个。本文作者主要关注CB编译Skyeye的方法步骤,关于Skyeye的详细内容,大家可以Google其他网站内容。

SkyEye is an Open Source Software Project (GPL Licence). Origin from /Armulator, The goal of SkyEye is to provide an integrated simulation environment in Linux and . SkyEye environment simulates typical Computer Systems (Now it supports a series ARM architecture based microprocessors and Blackfin DSP Processor). You can run some Operation System such as ARM Linux, uClinux, uc/OS-II (ucos-ii) etc. in SkyEye, and analysis or debug them at source level. – Skyeye.org

使用CodeBlocks编译skyeye-1.2.5(linux系统,已安装完整的编译环境)
使用编译:

Continue reading Code::Blocks编译skyeye步骤 - 全文阅读

Share and Enjoy:
  • Print this article!
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • LinkedIn
  • Live
  • MySpace
  • RSS
  • Slashdot
  • Technorati
  • TwitThis

Debian Lenny编译wxWidgets与Code::Blocks SVN版

debian-linux

研究跨平台开发,选择了和Code::Blocks搭挡,那么编译wxGTK和Code::Blocks最新的版本(不选择Code::Blocks 8.02的原因是现在的版本修复了8.02大量BUG,而且使用最新的版本,同时报告使用中出现的问题,本身也是对Code::Blocks开发的支持)就不可避免了。
在Ubuntu下编译,两都都很顺利,但当基于 Lenny系统来编译时,CB却出现了问题:

codeblocks: error while loading shared libraries: libcodeblocks.so.0: cannot open shared object file: No such file or directory

就是这个错误,导致CB根本无法启动。试着把相应文件拷贝到codeblocks主程序所在的/usr/local/bin目录中(还是Windows的思维),仍然出错。经查找资料,发现此时只要把libcodeblocks.so.0所在的目录加入环境变量中就可以了。

sudo /etc/ld.so.conf #编译该文件
/usr/local/lib #将该行加入到该文件的末尾
sudo ldconfig #重新配置

这样就可以正常启动Code::Blocks了。

Continue reading Debian Lenny编译wxWidgets与Code::Blocks SVN版 - 全文阅读

Share and Enjoy:
  • Print this article!
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • LinkedIn
  • Live
  • MySpace
  • RSS
  • Slashdot
  • Technorati
  • TwitThis
 Page 1 of 3  1  2  3 »

Contact us

Admin: Bryan Wu