By Bryan Wu, on 六月 9th, 2009, Category: C++ Programming, Open Source
Tags: Building tool, C++, compiler, cross platform, IDE Family, JAM, makefile, Open Source, Perforce
Perforce公司的开源工具JAM可以代替Make的工作,Jam可以自动识别源文件的依赖关系而不需要像Makefile那么复杂的定义。下面有一个例子,编译一个简单的C文件,Jamfile只需要一句,而Makefile需要8行对依赖关系的定义。顺便说一下,Perforce公司的SCM工具也非常不错,很多大公司都在使用。
Jam is a software build tool that makes building simple things simple and building complicated things manageable. It has been freely available as C source for many years from the Perforce Public Depot and is widely used to build commercial and academic software. Jam is a very good solution for conventional C/C++ compile-and-link builds.
Continue reading JAM – Building tool for C/C++ instead of Make - 全文阅读
By Bryan Wu, on 六月 4th, 2009, Category: CodeLite IDE
Tags: accelerator, CodeLite IDE, compiler, Debugging, GDB, IDE Family, Programming, 调试
CBForge.com站内已经有好几篇关于CodeBlocks调试的文章,今天转载并部分翻译一篇关于CodeLite的Debugging文章供大家参考。因为在CodeInsight中不打算支持Compiler/GDB等编译、调试相关的功能,所以不打算后续再写关于这部分的代码分析文章了。如果哪位朋友有兴趣的话,可以继续供稿。
这一篇中主要包括了:CodeLite GDB设置;Attach到进程;Debugger UI和Debugger Shortcut几部分。CodeLite在GDB之上封装了一层,但是它并没有使用GDB的命令行模式,而是使用了MI模式。所以调试的输出可能看起来不像你平时知道的那样。这儿有一篇关于GDB/MI的语法说明的文章可以参考:GDB/MI command syntax
Continue reading Debugging With CodeLite - CodeLite调试简介 - 全文阅读
By Bryan Wu, on 六月 3rd, 2009, Category: Code::Blocks
Tags: code blocks, compiler, GCC, GNU, Linux, Mac OS X, MinGW, Visual C++, 编译器
当第一次运行CodeBlocks IDE,它会自动扫描系统寻找支持的编译器。当扫描结束时,CodeBlocks会配置检测到的编译器,甚至为那些没有发现的编译器也会包括缺省的配置。这篇文章主要是指导你如何手动获取、安装和配置CodeBlocks可以使用的编译器。以下大体上按照操作系统不同分别讨论:Windows,Linux和Mac OS X。同时包含各种编译器的主页/下载地址可以方便你直接访问。
Continue reading Code::Blocks IDE: 手动安装和配置编译器指南 - 全文阅读
以下是我在Window XP下利用CodeLite编译CodeLite源代码的Log。
删除掉很多编译.o的记录(用省略号代替),我们通过以下可以看到CodeLite的主要dll(.so)和可执行文件的依赖关系和生成过程。
其中如果需要缩减为一个codeinsight,我们通过修改.mk文件就可以很快瘦身。第二步阅读源代码再修改和改进其他部分。
Continue reading CodeLite 编译解析(with Compile log) - 全文阅读
By Bryan Wu, on 五月 11th, 2009, Category: Code::Blocks
Tags: boost, compiler, MinGW, qmake, Qt, STL
转载这一篇文章,QT开发的程序员可以参考。其中包括了编译Boost,还有Qt的详细设置步骤。
今天写一篇编程日志。
使用VC编译STL以及boost总是会发觉n多warnning,于是决定换一个编译器,结果就找到了gcc for windows版本MinGW.
安装很容易,要么自己download,要么使用官方网提供的工具,把Get Started 或者Manual 或者Reference之类的看一下,然后三下两下就搞定安装。 安装好了,还缺少一个MinGW的IDE,这样可以减少敲命令的繁琐。在Unix下那是万不得已。在Windows下,当然要找个IDE来,于是找到了Code::Blocks安装也很方便。其实它本身就已经附带了gcc安装包,安装完毕以后,在其目录下面就会有一个MinGW目录,那就是gcc编译器的的窝。 近来闲来无聊之时,便拿它们练起了boost和Qt。 总得感觉,gcc编译能力比vc还是要强悍很多。 编译boost时,要添加环境变量设置:
Continue reading Code::Blocks + Qt体验 - 全文阅读
Author: Bryan Wu@CBForge (cbforge at gmail dot com)转载请保留
众所周知CB的一个优点就是开放式架构提供灵活的插件开发和支持,我们也相信在今后的发展上插件对CB的贡献会越来越大。
下面是现有核心插件和贡献插件的简介列表:
Core Plugins 核心插件(系统初始化时会自动加载,由CB官方开发团队维护)
The core plugins are installed by default and offer the basic functions of Code::Blocks. The core plugins are maintained / developed by the official development team.
Autosave
- Saves project files between intervals.
Class Wizard
- Provides wizard for creating new classes.
Code Completion[这个插件非常重要,现在处于重写阶段,估计很快会合大家见面]
- Provides code completion functionality and class browser.
Continue reading C::B IDE Plugin插件简介 - 全文阅读
本文档依照GPL发布,转载请注明出处:codeblocks.org/ide.cbforge.com 翻译,Bryan@CBForge.
安装步骤:
1. 通过下面的链接下载CB官方安装包,如果你还没有安装MinGW,可以选择下载绑定MinGW的CB软件包;
2. 按照每步的说明运行安装;
3. 如果你想安装其他编译器,可参考安装文件中信息,我们也会稍后提供相关的详细说明【cbforge.com注】;
4. 如果没有安装绑定MinGW的版本,你需要手工配置编译器
以下是原文:
Install steps
- Download the Code::Blocks 8.02 installer. If you know you don’t have MinGW installed, download the package which has MinGW bundled.
- Run the installer, it’s a standard installer for Windows; just press Next after reading each screen.
- If you’re planning installing a compiler after you’ve installed Code::Blocks, read the information provided in the installer.
- If you downloaded the installer which doesn’t come with MinGW, you may have to configure the compiler manually (usually Code::Blocks’ auto detects the compiler).
Retrieved from "http://wiki.codeblocks.org/index.php?title=Installing_the_latest_official_version_of_Code::Blocks_on_Windows"
|
|
|