解决thal.c:429:16: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
今天在安装primer3-2.3.7的时候遇到了如下的错误:
error代码如下:
thal.c:429:16: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
if (’\0’ == oligo_f) {
^~~~~~~
thal.c:434:16: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
if (’\0’ == oligo_r) {
这里显示的错误是由于指针与整数不能比较
我们打开thal.c文件
vim thal.c /‘if (’\0’ == oligo_f)'
在oligo_f前加上 * 就可以解决错误
其他的waring可以忽略。