Entering edit mode
2.1 years ago
taniamahmood38
▴
50
Dear all,
I am trying to make genetic map file from vcf using polymutt2 tool. While compiling it by typing make, following error occurs:
make[1]: Entering directory '/media/tania/TM/polymutt2_v0.2/base'
g++ -c -O4 -I. -I../third/tabix Argument.cpp In file included from Argument.cpp:1: Argument.h: In member function ‘void ParameterParser::Read(int, char**)’: Argument.h:366:34: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
366 | if (argv[i+1] == '\0') {
| ^~~~
make[1]: *** [Makefile:34: Argument.o] Error 1
make[1]: Leaving directory '/media/tania/TM/polymutt2_v0.2/base'
make: *** [Makefile:10: all] Error 2
Kindly help me in resolving the issue. Any help would be highly appreciated.
Thanks in advance!
it's a programming error, the author of this software compares a string/pointer (char*) to a char. 1) tell the author
2) find the file Argument.h and at line 366, replace
if (argv[i+1] == '\0')
with
if (argv[i+1]==NULL || argv[i+1][0]== '\0')
use at you own risk.
I am really grateful to you for your help. I have made changes in argument.h file as per your suggestion. But now i am getting the following error
please help resolve this error. I shall be very thankful.