#include C语言 #include
我记得头文件在 /usr/include 文件夹中
你是不是在执行第四步,编译qa2.cpp的时候报错?
在qa2.cpp的开头,有一堆#include的地方,加入一个#include试试?
你是不是在执行第四步,编译qa2.cpp的时候报错?
在qa2.cpp的开头,有一堆#include的地方,加入一个#include试试?
我加入了#include 后,编译qa2.cpp时出现了下列错误信息:
qa2.cpp: In function ‘std::__cxx11::string str_tokenizer(std::__cxx11::string, int*)’:
qa2.cpp:527:1: warning: control reaches end of non-void function [-Wreturn-type]
}
分析后认为可能是QuickParanoid编写时使用gcc版本较低,使用的可能是c11,而现在deepin20中gcc8.3.0用的是c++11,二者不兼容,请问如何解决这一问题?
我加入了#include 后,编译qa2.cpp时出现了下列错误信息:
qa2.cpp: In function ‘std::__cxx11::string str_tokenizer(std::__cxx11::string, int*)’:
qa2.cpp:527:1: warning: control reaches end of non-void function [-Wreturn-type]
}
分析后认为可能是QuickParanoid编写时使用gcc版本较低,使用的可能是c11,而现在deepin20中gcc8.3.0用的是c++11,二者不兼容,请问如何解决这一问题?
你是include了string.h还是cstring?
你是include了string.h还是cstring?
include
include
cstring
cstring
没记错的话cstring好像是c++的头文件?用string.h试试?
Popular Events
More

中文 

编译QuickParanoid时出错,按作者建议需要将string.h加入到源代码中,请问应如何解决