各种flag
-L
- Library directive. 链接库的文件夹,分别是动态和静态链接库:
shared library directive containing xx.so 动态链接库
archive fie directive including xx.a 静态链接库
- Library directive. 链接库的文件夹,分别是动态和静态链接库:
-l
- Link the library file. 与-L不同的是,它标记文件。
- Eg. -L ./share -llibmylib
libmylib.a 存在./share 文件夹下。记得一定要去掉前后缀”lib”和”.a”。
-I
- Include header files xx.h directive
指明头文件的文件夹的路径
- Include header files xx.h directive
-i
- Include header files
指明头文件。
- Include header files