C 学习笔记

1、 -Wall 选项表示 输出所有的警告

2、 gcc -g hello.c -o hello 编译文件  (-g 将源文件与目标文件关联)

      并且可以使用 adb hello 进入调试模式

      start 命令开始调试  n 下一步  s 进入函数

  i locals 查看当前stack 中的变量。

3、#include “send.h” 导入静态链接库

    1)、gcc -c send.c 得到 send.o

    2) 、ar rs libsend.a send.o 将.o文件 打包为.a文件

    3)、gcc main.c -Lsend -lsend -Isend -o main ,生成可执行文件 main。 其中 -Isend 指明 头文件路径为当前目录下的send目录;-L指明.a文件的路径 ;-l 指明 .a文件的名字

4、命令行打开文件夹的方法 gnome-open  dir

原文地址:https://www.cnblogs.com/lipeil/p/2576646.html