mskcc / htstools

5 stars 3 forks source link

argp compiling problem #4

Open Jorges1000 opened 6 years ago

Jorges1000 commented 6 years ago

Hello,

When trying to compile snp-pileup in a Mac Pro running High Sierra (OS X 10.13.3) with:

g++ -std=c++11 snp-pileup.cpp -lhts -o snp-pileup

I get

Undefined symbols for architecture x86_64: "_argp_parse", referenced from: _main in snp-pileup-d0d639.o "_argp_usage", referenced from: parse_opt(int, char*, argp_state*) in snp-pileup-d0d639.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)

argp-standalone was installed via brew

Thanks for any help!

Jorges1000 commented 6 years ago

Solved the problem by reading the other issue!

Compile with g++ -std=c++11 snp-pileup.cpp -lhts -largp -o snp-pileup