Linux
Linux1Code::blocksVimGCCGDBCode::blocksC/C++C++wxWidgets
3Code::blocks
Code::blocks
Code::blocksLinuxc/c++
http://blog.csdn.net/aa2650/article/details/12582651
6(vi & vim)vilinux Unix-Like vim vi vivim Vim Unix Like vi vim vi h :w , a/A, i/I,j :w! o/O.k :q! l :wq! 0 :e! $ :w filename H :set nu M :set nonu dd :nohlsearch yy :set nohlsearch p,P :sp u gg [Ctrl]+w
8Linuxc/c++
9(GCC/G++)GCC(GNU Compiler CollectionGNU)Unix-likeWindowsGNU C CompilerCC++ FortranPascalGCCG++GNUcc++.c, gccc, g++c++.C / .cc / .cpp, c++.
Linuxc/c++
11(GDB)GNUlinuxLinuxc/c++
13makefile & make.Linux gccIDE, IDELinuxgcc MySQLMakefilemakemakefile14ex_main.cppex_output.cpp#include #include "ex_output.h"int main(){display("Hello world!\n");return 0;}
#include
int display(const char *str){printf( "The str is %s\n", str );return 0;}
g++ -c ex_main.cpp ex_output.cppg++ -0 ex_main ex_main.o ex_output.omakefilemain: ex_main.o ex_output.og++ -o ex_main ex_main.o ex_output.o
ex_main.o:ex_main.cppg++ -c ex_main.cpp
ex_output.o:ex_output.cppg++ -c ex_output.cppVim
Normaliinsert:InsertEscnoramlNormalNormaliInsert:wq + (:w , :q :w :q :q! ddp: hjkl
Normal:
:q!vim:wvim:xvim:! commandshell:e filename/http://linuxconfig.org/vim-tutorial
http://coolshell.cn/articles/5426.html
GCC
C*.c.h#ifdef #include#define*.igcc -E test.c -o test.i*.i*.s GCCgcc -S test.i -o test.s*.s*.oGCCGCC -c test.s -o test.o*.sGCC test.o -o testGCC$ GCC -c test.c$ GCC -o test$ GCC -o test first.c second.c third.c
$ gcc -Wall test.c -o test-Wall
GDBgcc g gdbfile: r: b: c: sn: pprint, p n
b b 8b b main
gg++ 1.cpp o mytest -g
gdb mytest
29GDBhttp://cs.baylor.edu/~donahoo/tools/gdb/tutorial.htmlhttp://www.cprogramming.com/gdb.htmlhttp://blog.csdn.net/lyjtynet/article/details/4057723Linuxls, cd, pwd, mkdir, rm, rmdir, mv, cp, cat, morewhereis,chmod, ps, kill, jobs, bg, fg, tar, gzip, grep, wc, wgetlinux vim + gcc + gdbcode::blocks
cat: cat-nlog2012.loglog2013.log
more: Entern1Ctrl+FCtrl+B=fVvi!Shellqmore
Linuxhttp://www.cnblogs.com/peida/tag/%E6%AF%8F%E6%97%A5%E4%B8%80linux%E5%91%BD%E4%BB%A4/default.html?page=4
31