Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1467535
  • 博文数量: 596
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 173
  • 用 户 组: 普通用户
  • 注册时间: 2016-07-06 15:50
个人简介

在线笔记

文章分类

全部博文(596)

文章存档

2016年(1)

2015年(104)

2014年(228)

2013年(226)

2012年(26)

2011年(11)

发布时间: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:.........【阅读全文】

阅读(3782) | 评论(0) | 转发(0)

发布时间: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" <= ".........【阅读全文】

阅读(715) | 评论(0) | 转发(0)

发布时间:2013-03-21 09:34:51

问题:1)设置CFLAGS后,编译无效2)修改Makefile.am,编译无效解决方法:./configure重新生成Makefile......【阅读全文】

阅读(1454) | 评论(0) | 转发(0)

发布时间: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). .........【阅读全文】

阅读(1871) | 评论(0) | 转发(0)

发布时间: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作为后缀,可以被指定静态库、动态库或二者都包括。静态库或动态库的依赖文件(比.........【阅读全文】

阅读(719) | 评论(0) | 转发(0)
给主人留下些什么吧!~~
留言热议
请登录后留言。

登录 注册