在线笔记
全部博文(596)
发布时间:2013-03-21 15:58:06
Physical Processor ID来区分单核和双核。而Physical Processor ID可以从cpuinfo或者dmesg中找到例如root@debian:~:0# dmesg | grep CPU | grep IDCPU0: Initial APIC ID: 0, Physical Processor ID: 0CPU1: Initial APIC ID: 1, Physical Processor ID: 0CPU2: Initial APIC ID: 6, Physical Processor ID: 3CPU3:.........【阅读全文】
发布时间:2013-03-21 14:23:08
整数比较-eq 等于,如:if [ "$a" -eq "$b" ]-ne 不等于,如:if [ "$a" -ne "$b" ]-gt 大于,如:if [ "$a" -gt "$b" ]-ge 大于等于,如:if [ "$a" -ge "$b" ]-lt 小于,如:if [ "$a" -lt "$b" ]-le 小于等于,如:if [ "$a" -le "$b" ] < 小于(需要双括号),如:(("$a" < "$b"))<= 小于等于(需要双括号),如:(("$a" <= ".........【阅读全文】
发布时间:2013-03-21 09:34:51
问题:1)设置CFLAGS后,编译无效2)修改Makefile.am,编译无效解决方法:./configure重新生成Makefile......【阅读全文】
发布时间:2013-03-20 14:57:01
8.9 C++ SupportAutomake includes full support for C++. Any package including C++ code must define the output variable CXX in ‘configure.ac’;the simplest way to do this is to use the AC_PROG_CXX macro (see Section “ParticularProgram Checks” in The Autoconf Manual). .........【阅读全文】
发布时间:2013-03-19 18:59:29
##程序#bin_PROGRAMS = hello #Makefile.in将会生成一个程序,名为hellohello_SOURCES = hello.c util.c #程序的依赖文件hello_LDADD = libcpio.a #依赖的库Libtool 抽象静态库和动态库为Libtool libraryes。Libtool使用.la作为后缀,可以被指定静态库、动态库或二者都包括。静态库或动态库的依赖文件(比.........【阅读全文】