|
SOAPdenovo下载源码安装,make后发现编译错误:
collect2: error: ld returned 1 exit status
make: *** [SOAPdenovo-63mer] Error 1
仔细查看编译输出,发现有如下几个错误提示:
multi_threads.cpp:93:14: error: ‘usleep’ was not declared in this scope
build_preArc.cpp:1071:39: error: ‘usleep’ was not declared in this scope
pregraph_sparse.cpp:171:42: error: ‘usleep’ was not declared in this scope
pregraph_sparse.cpp:504:2: error: ‘optind’ was not declared in this scope
pregraph_sparse.cpp:507:64: error: ‘getopt’ was not declared in this scope
于是找到这些源码,在头文件中加入:
#include “unistd.h“
问题解决!
Archiver|手机版|科学网 ( 京ICP备07017567号-12 )
GMT+8, 2024-12-21 22:08
Powered by ScienceNet.cn
Copyright © 2007- 中国科学报社