[Debian-med-packaging] Bug#853656: Help needed with gcc-7 error
Bastien Roucaries
roucaries.bastien at gmail.com
Sun Aug 27 15:48:20 UTC 2017
Use <limit> and make signed
Le 27 août 2017 15:58:34 GMT+02:00, James Cowgill <jcowgill at debian.org> a écrit :
>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
--
Envoyé de mon appareil Android avec K-9 Mail. Veuillez excuser ma brièveté.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/debian-med-packaging/attachments/20170827/7877e45e/attachment.html>
More information about the Debian-med-packaging
mailing list