C/C++
文章平均质量分 82
liuqzan
这个作者很懒,什么都没留下…
展开
-
C tutorial pointer to pointer
http://www.eskimo.com/~scs/cclass/int/sx8.html原创 2011-12-15 23:54:55 · 78 阅读 · 0 评论 -
C++ Header File Include Patterns
http://www.eventhelix.com/realtimemantra/headerfileincludepatterns.htmC++ Header File Include PatternsComplex software in Realtime systems requires a careful header file management even when p...原创 2012-08-01 16:04:12 · 226 阅读 · 0 评论 -
Static and dynamic libraries
A library is a package of code that is meant to be reused by many programs. Typically, a C++ library comes in two pieces:1) A header file that defines the functionality the library is exposing (of...原创 2012-03-22 11:53:42 · 113 阅读 · 0 评论 -
cmake command
http://www.cmake.org/cmake/help/cmake-2-8-docs.html#command:add_definitionshttp://www.scintilla.org/cmake.api原创 2012-02-27 15:27:11 · 187 阅读 · 0 评论 -
LUA tutorial
http://lua-users.org/wiki/TutorialDirectory原创 2012-02-27 13:00:59 · 114 阅读 · 0 评论 -
CMAKE
http://www.cs.swarthmore.edu/~adanner/tips/cmake.php原创 2012-02-27 13:00:49 · 49 阅读 · 0 评论 -
MakeFile
http://web.cs.swarthmore.edu/~newhall/unixhelp/howto_makefiles.html原创 2012-02-27 13:00:40 · 46 阅读 · 0 评论 -
Robust Design Techniques for C Programs
http://www.freetype.org/david/reliable-c.html原创 2012-01-16 11:03:20 · 69 阅读 · 0 评论 -
GDB调试精粹及使用实例
一:列文件清单 1. List (gdb) list line1,line2 二:执行程序 要想运行准备调试的程序,可使用run命令,在它后面可以跟随发给该程序的任何参数,包括标准输入和标准输出说明符(<和>)和外壳通配符(*、?、[、])在内。 如果你使用不带参数的run命令,gdb就再次使用你给予前一条run命令的参数,这是很有用的。 利用set a...原创 2012-01-09 00:58:14 · 55 阅读 · 0 评论 -
gdb cannot exec /bin/sh on android local terminal
http://letsgoustc.spaces.live.com/Blog/cns!89AD27DFB5E249BA!943.entry Cross-compile GDB 6.8 for AndroidStep1: Download gdb and arm cross-compile toolchain.ftp://ftp.gnu.org/gnu/gdb/...原创 2012-01-08 23:52:27 · 293 阅读 · 0 评论 -
GCC-makefile写法
http://liudefang111.blog.163.com/blog/static/624604092008164524779/ http://www.chinaunix.net/jh/23/408225.html http://web.cs.swarthmore.edu/~newhall/unixhelp/howto_makefiles.html原创 2012-01-06 17:54:59 · 135 阅读 · 0 评论 -
gcc 编译多个文件
一. 常用编译命令选项假设源程序文件名为test.c。1. 无选项编译链接用法:#gcc test.c作用:将test.c预处理、汇编、编译并链接形成可执行文件。这里未指定输出文件,默认输出为a.out。2. 选项 -o用法:#gcc test.c -o test作用:将test.c预处理、汇编、编译并链接形成可执行文件test。-o选项用来指定输出文件的文件名。3. 选项 -E...原创 2012-01-06 17:51:10 · 150 阅读 · 0 评论 -
gcc编译选项
转载自http://blogold.chinaunix.net/u3/94700/showart.php?id=2340792gcc 提供了大量的警告选项,对代码中可能存在的问题提出警 告,通常可以使用-Wall来开启以下警告: -Waddress -Warray-bounds (only with -O2) -Wc++0x-compat -W...原创 2012-01-06 17:49:03 · 74 阅读 · 0 评论 -
c语言分配内存空间
有人给对齐原则做过总结,具体在哪里看到现在已记不起来,这里引用一下前人的经验(在没有#pragma pack宏的情况下): 原则1、数据成员对齐规则:结构(struct或联合union)的数据成员,第一个数据成员放在offset为0的地方,以后每个数据成员存储的起始位置要从该成员大小的整数倍开始(比如int在32位机为4字节,则要从4的整数倍地址开始存储)。 原则2、结构体作为成员:如...原创 2011-12-25 17:52:38 · 249 阅读 · 0 评论 -
Ogre xcode build error: Reference to 'FileInfo' is ambiguous
When update Ogre source to the stable version 1.9 with Mac osx 10.7,Xcode 4.6.3, CMake 2.8.10.2, I get this error Reference to 'FileInfo' is ambiguous /Applications/Xcode.app/Contents/Dev...原创 2013-12-07 15:59:56 · 161 阅读 · 0 评论