摘要:
<?xml version="1.0" encoding="utf-8" ?><log4net> <root> <level value="ALL" /> <appender-ref ref="ColoredConsoleAppender" /> <appender-ref ref="File" /> </root> <appender name="File" type="lo 阅读全文
摘要:
1. 查看autoconf ,automake,perl,m4是否安装[xpan@localhost ~]$ rpm -qa |grep autoconfautoconf-2.68-3.fc17.noarch[xpan@localhost ~]$ rpm -qa |grep automakeautomake14-1.4p6-22.fc17.noarchautomake17-1.7.9-15.fc17.1.noarchautomake-1.11.3-1.fc17.noarch[xpan@localhost ~]$ rpm -qa |grep perlperl-Digest-1.17-2.fc17 阅读全文
摘要:
几种查看linux版本信息的方法:uname -acat /proc/versioncat /etc/issuelsb_release -a出处http://guoyaxu.iteye.com/blog/102694 阅读全文
摘要:
1.创建共享库[xpan@localhost 2.5.3]$ lslibhello.c libhello.h usehello.c[xpan@localhost 2.5.3]$ gcc -fPIC -Wall -g -c libhello.c参数说明:-fPIC 参数生成与位置无关的代码;-W 或 -Wall 去除所有警告;-g 指加上调试信息;-c 是编译之意;[xpan@localhost 2.5.3]$ ls libhello.olibhello.o[xpan@localhost 2.5.3]$ gcc -shared -o libhello.so.1.0 libhello.o[xpan 阅读全文
摘要:
1.创建静态库[xpan@localhost 2.5.2]$ lslibhello.c libhello.h usehello.c[xpan@localhost 2.5.2]$ cat libhello.h#ifndef _libhello_H_#define _libhello_H_void print_hello(void);#endif /*_libhello_H_*/[xpan@localhost 2.5.2]$ cat libhello.c#include<stdio.h>void print_hello(void){ printf("hello world , 阅读全文