安装 ubuntu 18.04 后,我无法构建扭矩软件。Ubuntu 16.04 没有出现这样的错误。
make[4]: Entering directory '/home/socrates/torque-6.1.2/src/lib/Libattr'
g++ -DHAVE_CONFIG_H -I. -I../../../src/include -I../../../src/include
`xml2-config --cflags` -Wno-implicit-fallthrough -std=gnu++11
-g -fstack-protector -Wformat -Wformat-security -DFORTIFY_SOURCE=2
-W -Wall -Wextra -Wno-unused-parameter -Wno-long-long -Wpedantic -Werror -Wno-sign-compare
-MT req.o -MD -MP -MF .deps/req.Tpo -c -o req.o req.cpp
req.cpp: In member function ‘int req::set_from_submission_string(char*, std::__cxx11::string&)’:
req.cpp:1057:23: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
else if (current != '\0')
^~~~
Makefile:521: recipe for target 'req.o' failed
make[4]: *** [req.o] Error 1