编译.c源程序脚本命令

##源程序Wcor.c

#! /bin/bash

gcc
-o Wcor.o -c -g -std=gnu99 -Wall -pedantic -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -fopenmp -I/home/wikier/rsf/include Wcor.c

gcc
-o ./mycor -pthread Wcor.o -Lbuild/lib -L/home/wikier/rsf/lib/ -lrsf -lm -lblas -lgomp
.
/mycor < s.rsf uu=r.rsf axis=3 verb=y nbuf=100 >i.rsf

posted @ 2011-03-29 18:39  big cat  阅读(890)  评论(0编辑  收藏  举报