[Debian-med-packaging] Bug#853656: Help needed with gcc-7 error
James Cowgill
jcowgill at debian.org
Sun Aug 27 13:58:34 UTC 2017
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/debian-med-packaging/attachments/20170827/d544ae81/attachment.sig>
More information about the Debian-med-packaging
mailing list