- 浏览: 146109 次
- 性别:
- 来自: 深圳
文章分类
最新评论
-
lyaqys:
lz实现的OptimisticExclusiveLock有点问 ...
java park/unpark 【java并发】基于JUC CAS原理,自己实现简单独占锁
我们用gcc编译程序时,可能会用到“-I”(大写i),“-L”(大写l),“-l”(小写l)等参数,下面做个记录:
例:
gcc -o hello hello.c -I /home/hello/include -L /home/hello/lib -lworld
上面这句表示在编译hello.c时:
-I /home/hello/include表示将/home/hello/include目录作为第一个寻找头文件的目录,寻找的顺序是:/home/hello/include-->/usr/include-->/usr/local/include
-L /home/hello/lib表示将/home/hello/lib目录作为第一个寻找库文件的目录,寻找的顺序是:/home/hello/lib-->/lib-->/usr/lib-->/usr/local/lib
-lworld表示在上面的lib的路径中寻找libworld.so动态库文件(如果gcc编译选项中加入了“-static”表示寻找libworld.a静态库文件)
例:
gcc -o hello hello.c -I /home/hello/include -L /home/hello/lib -lworld
上面这句表示在编译hello.c时:
-I /home/hello/include表示将/home/hello/include目录作为第一个寻找头文件的目录,寻找的顺序是:/home/hello/include-->/usr/include-->/usr/local/include
-L /home/hello/lib表示将/home/hello/lib目录作为第一个寻找库文件的目录,寻找的顺序是:/home/hello/lib-->/lib-->/usr/lib-->/usr/local/lib
-lworld表示在上面的lib的路径中寻找libworld.so动态库文件(如果gcc编译选项中加入了“-static”表示寻找libworld.a静态库文件)
发表评论
-
简单的linux -c http-client
2013-10-23 15:35 4662#include<stdio.h> #includ ... -
linux进程cpu资源分配命令nice,renice,taskset
2013-09-04 14:03 1126nice,renice 指定进程运行的优先级 taskset ... -
c 专家编程
2013-08-13 17:06 652总结: -2> int * a = NUL ... -
Linux中线程与CPU核的绑定
2013-08-09 15:15 2083最近在对项目进行性能 ... -
建议编译的时候加警告 atof
2013-08-07 20:46 668#include <stdlib.h> ... -
feodra 17 安装 chrome
2013-08-04 01:35 7221: 下载:http://www.google.cn/chro ... -
Sudo提权出现:xx用户不在 sudoers 文件中
2013-08-03 20:22 870Sudo提权出现:xx用户不在 sudoers 文件中 症状 ... -
select,epoll,poll比较
2013-07-28 17:13 649select,poll,epoll简介 se ... -
libevent简单的http实现
2013-07-22 22:44 5471 #include <sys/types.h> ... -
Linux下如何将进程绑定在特定的CPU上运行
2013-07-22 10:52 947Linux下如何将进程绑定在特定的CPU上运行? 以root用 ... -
linux运维常用命令
2013-07-13 20:40 808推荐一个实用命令:awk '{x+=$2} END {prin ... -
linux 进程通信方式
2013-07-07 20:46 588# 管道( pipe ):管道是一种半双工的通信方式,数据只能 ... -
有一些桃子,一只猴子,每天吃1/2+1个桃子,6天吃完
2013-07-07 20:42 10961 #include<stdio.h> 2 ... -
判断两个一个链表是否存在循环(C专家编程中的问题)
2013-06-24 15:35 872判断两个一个链表是否存在循环(C专家编程中的问题) #incl ... -
atoi源码
2013-05-14 19:32 1222原文: http://blog.csdn.net/eroswa ... -
为重负网络优化 Nginx 和 Node.js
2013-05-13 01:12 948原文:http://linux.cn/forum.php?mo ... -
c语言特殊字符串复制
2013-05-06 01:59 8232.strcpy和memcpy主要有以下3方面的区别。 2.1 ... -
《APUE》:线程和fork(父子进程锁)
2013-04-29 21:07 1106《Unix环境高级编程》这本书附带了许多短小精美的小程序,我在 ... -
CentOS升级Python到2.7版本
2013-04-23 15:24 899[root@localhost ~] python -V ... -
Linux多线程同步的几种方式
2013-04-22 22:49 731Linux多线程同步的几种方式 线程的最大特点是资 ...
相关推荐
交叉编译工具:gcc-linaro-arm-linux-gnueabihf-4.9-2014.09_linux.tar.bz2 解压命令:tar jxvf gcc-linaro-arm-linux-gnueabihf-4.9-2014.09_linux.tar.bz2
交叉编译工具:gcc-linaro-arm-linux-gnueabihf-4.9-2014.09_linux.tar.bz2 解压命令:tar jxvf gcc-linaro-arm-linux-gnueabihf-4.9-2014.09_linux.tar.bz2
windows最新版的gcc-arm-none-eabi-9-2020-q2-update-win32,外网下非常慢,不也不想收分,但是我需要分下载别的东西
当时Richard Stallman(GNU项目的创办人)想要创建一个编译器,它可以满足他定义的“自由软件”概念,并可用来编译GNU项目发布的其他软件。GNU C编译器迅速在自由软件社区中流行开来,而且以其健壮性和可移植性而...
arm-linux-gcc编译选项,包括相关参数的详细说明等等。
gcc-arm-none-eabi-10-2020-q4-major-win32.exe
gcc-arm-none-eabi-6-2017-q2-update-win32.exe windows 编译工具
gcc-4.8.0 gcc-4.9.0 gcc-5.1.0 gcc-6.1.0 gcc-7.1.0 gcc-8.1.0 gcc-9.1.0.7z 已验证可用,请放心下载。GCC used to stand for the GNU C Compiler, but since the compiler supports several other languages aside...
作为一个linux入门级使用者,gcc/g++ 的简单操作已经用过多次, ...编译程序按照-I指定的路进去搜索头文件。 -I/home/include/表示将-I/home/include/目录作为第一个寻找头文件的目录,寻找的顺序是: /home/include
gcc-4.6.2-glibc-2.13-linaro-multilib-2011.
gcc编译器20220506 082534 版本为:gcc-arm-none-eabi-10.3-2021.10-win32 配合文章:nordic52832 nordic使用gcc编译环境搭建和使用说明
gcc-4.4.4-glibc-2.11.1-multilib-1.0_EasyARM-iMX283.tar.bz2 arm-linux-gcc编译工具
gcc-arm-none-eabi-7-2018-q2-update-linux.tar.bz2,官网最新的,官网下载比较慢。
winlibs-x86_64-posix-seh-gcc-11.3.0-llvm-14.0.3-mingw-w64msvcrt-10.0.0-r3.zip
aarch64-linux-gnu-gcc gcc version 7.5.0 (Linaro GCC 7.5-2019.12) openssl-1.1.1g
gcc-arm-none-eabi-9-2019-q4-major-win32 GCC compiler toolchain for ARM.
gcc-arm-none-eabi编译链,包含windows下以及linux环境下的
gcc-arm-none-eabi-9-2019-q4-major-x86_64-linux.tar.bz2
gcc-linaro-arm-linux-gnueabihf-4.9-2014.09_windows windows用
gcc-ada-4.8.1-4-mingw32-dev.tar.lzma MinGW