过滤程序

来源:互联网 发布:战地1网络要求 编辑:程序博客网 时间:2024/05/22 06:50

一个C写的过滤程序,遇到的问题有:

1. 没有装libboost1.42

2. exit没有进行定义


安装libboost(竟然和boost是一样的?!),方法:

1. ./bootstrap.sh --prefix=*/bin/boost_1_42_0/ --exec-prefix=*/bin/boost_1_42_0/

2. ./bjam install


修改编译程序:

CC = g++  BOOST_INCLUDE =*/bin/boost_1_42_0/include/ BOOST_LIB = */bin/boost_1_42_0/lib/targets = ./filter_fqall: $(targets)./filter_fq: readsinfo.cpp filter_adapter.cpp filter_small_size.cpp trim_reads.cpp GEt_Gnum.cpp filter_fq.cpp adapterlist.h$(CC) -I $(BOOST_INCLUDE) -L $(BOOST_LIB) -l boost_iostreams -Wl,-rpath -Wl,*/bin/boost_1_42_0/lib/ $^ -o $@clean:rm -f $(targets) 2> /dev/null


exit没有定义,在相应的cpp文件里最前面,写入:

#include <cstdlib>


原创粉丝点击