日期时间篇
asctime
ctime
gettimeofday
gmtime
localtime
mktime
settimeofday
time
“linux”目录存档
Linux下C时间函数
2009年12月9日,星期三linux下C/C++编译命令
2009年11月24日,星期二转载
1.gcc包含的c/c++编译器
gcc,cc与c++,g++
gcc和cc是一样的,c++和g++是一样的。一般c程序就用gcc编译,c++程序就用g++编译。
2.gcc的基本用法
gcc test.c:如果没有指定输出的文件,默认将编译出一个名为a.out的程序
gcc test.c -o test:-o参数用来指定生成目标程序的名字,这样将编译出一个名为test的程序。
3.为什么会出现undefined reference to ‘xxxxx’错误?
linux hosts绑定
2009年11月18日,星期三sudo nano /etc/hosts
添加上需要的地址对保存即可。
linux下用户的终端变量设置
2009年11月18日,星期三gedit .bashrc
在最后添加上变量:export LD_LIBRARY_PATH=/usr/local/……
保存。
重启终端。
ok
neon安装
2009年11月18日,星期三源自seven
解压neon软件包,进入软件包,./configure
若提示:expat or libxml 2.x required
则安装:apt-get install libxml2 libxml2-dev expat
完成后重新./configure
接下去:make
接下去:sudo make install