上一页 1 ··· 32 33 34 35 36 37 38 39 40 ··· 82 下一页
摘要: (1) 编写源文件hello.c:include int main(int argc, char** argv){printf("Hello, GNU!n");return 0;}(2) #autoscan ->生成 configure.scan 和 autoscan.log(3) 将configure.scan 修改为 configure.in:# Process this file with autoconf to produce a configure script.AC_INIT(hello.c)AM_INIT_AUTOMAKE(hello, 1.0)# Ch 阅读全文
posted @ 2011-07-13 23:55 greencolor 阅读(201) 评论(0) 推荐(0) 编辑
摘要: 1.启动linux系统,插上U盘2.在linux终端输入命令:fdisk -l 查看是否被系统识别,一般linux系统盘名为sda,a表示a盘,a后面紧接着的数字代表分区。识别U盘名为sdb。3.建立U盘挂载点:在mnt目录下建立一个新的目录,在终端输入命令mkdir /mnt/usb。4.开始挂载U盘:在终端输入命令mount -t vfad /dev/sdb /mnt/usb,意为将U盘挂载在系统默认的mnt的目录下的子目录usb中。5.检查U盘是否成功挂载:进入到usb目录中(在终端输入命令:cd mnt/usb,意为将当前目录转换到usb目录。)6.进入目录usb,查看是否有U盘的内容 阅读全文
posted @ 2011-07-13 23:06 greencolor 阅读(2102) 评论(0) 推荐(0) 编辑
摘要: [name@localhost ~]$ uname -mx86_64[name@localhost ~]$ uname -r2.6.18-238.12.1.el5[name@localhost ~]$ uname -sLinux 阅读全文
posted @ 2011-07-13 16:28 greencolor 阅读(133) 评论(0) 推荐(0) 编辑
摘要: echo "txt content" >> filename 阅读全文
posted @ 2011-07-13 15:28 greencolor 阅读(83) 评论(0) 推荐(0) 编辑
摘要: 1>/dev/null 表示将命令的标准输出重定向到 /dev/null2>/dev/null 表示将命令的错误输出重定向到 /dev/null2> /dev/null & 表示后台执行,你可以继续占有你的输入窗口 阅读全文
posted @ 2011-07-13 15:04 greencolor 阅读(184) 评论(0) 推荐(0) 编辑
摘要: babel [-i<input-type>] <name> [-o<output-type>] <name>Currently supported input types:-alc -- Alchemy fileprep -- Amber PREP filebs -- Ball & Stick filecaccrt -- Cacao Cartesian fileccc -- CCC filec3d1 -- Chem3D Cartesian 1 filec3d2 -- Chem3D Cartesian 2 filecml -- Chemic 阅读全文
posted @ 2011-07-13 13:27 greencolor 阅读(344) 评论(0) 推荐(0) 编辑
摘要: Example 3: Main Program in FORTRAN, with Subroutines in C, C++, and FortranThough the non-FORTRAN subroutines don't have any underscores after their names in the main FORTRAN program, running the nm command on fprogram.o shows that the FORTRAN program expects that they'll have underscores ap 阅读全文
posted @ 2011-07-09 22:17 greencolor 阅读(220) 评论(0) 推荐(0) 编辑
摘要: Example 1: Main Program in C, with Subroutines in C, C++, and FORTRANThe C program is nothing out of the ordinary: it defines two variables, and calls various functions that change those variables' values. C requires that we use a "call by reference" syntax to make these changes persis 阅读全文
posted @ 2011-07-09 21:33 greencolor 阅读(238) 评论(0) 推荐(0) 编辑
摘要: undefined reference to '__gxx_personality_v0'编译 c++ 程序需要添加 -lstdc++ option. sample: gcc -lstdc++ -o test test.c,否则会报 "undefined reference to '__gxx_personality_v0' " 错误 或者用g++也可以 阅读全文
posted @ 2011-07-09 21:31 greencolor 阅读(269) 评论(0) 推荐(0) 编辑
摘要: c00000000111111111122222222223333333333444444444455555555556666666666777c23456789012345678901234567890123456789012345678901234567890123456789012 program function1c --- declaration of variables real x, yc --- show function print*,"==========================================" print*,"Cal 阅读全文
posted @ 2011-07-09 10:59 greencolor 阅读(195) 评论(0) 推荐(0) 编辑
上一页 1 ··· 32 33 34 35 36 37 38 39 40 ··· 82 下一页