Hi, On 27/08/17 14:40, Andreas Tille wrote: > Hi, > > when trying to build sga it results in an error: > > ... > g++ -DHAVE_CONFIG_H -I. -I.. -I../Bigraph -I../Thirdparty -Wdate-time > -D_FORTIFY_SOURCE=2 -fopenmp -I/usr//include -I/usr//include/bamtools -Wall > -Wextra -Wno-unknown-pragmas -std=c++98 -O3 -c -o libutil_a-VariantIndex.o > `test -f 'VariantIndex.cpp' || echo './'`VariantIndex.cpp > VariantIndex.cpp: In member function 'VariantRecordVector > VariantIndex::getNearVariants(const string&, int, int) const': > VariantIndex.cpp:89:46: error: call of overloaded 'abs(long unsigned int)' is > ambiguous > if(abs(record.position - position) < distance) > ^
In C++11, you cannot call abs on an unsigned integer (which makes no sense anyway). Probably "record.position" needs casting to a signed type (like long). Thanks, James
signature.asc
Description: OpenPGP digital signature