尝试在Qt中升级Debian后构建项目

Trying to build project after upgrade Debian in Qt

本文关键字:Debian 构建 项目 Qt      更新时间:2023-10-16

我正在尝试在Debian 9中构建我的项目(在Qt-Creator,Debian 8中(。
我收到错误

/

usr/include/c++/6/cstdlib:75:error: stdlib.h:没有这样的文件或目录

// Need to ensure this finds the C library's <stdlib.h> not a libstdc++
// wrapper that might already be installed later in the include search path.
#define _GLIBCXX_INCLUDE_NEXT_C_HEADERS
#include_next <stdlib.h>
#undef _GLIBCXX_INCLUDE_NEXT_C_HEADERS

apt-get install libstd*没有解决问题。

我在Qt creator中将QMAKE_CFLAGS_ISYSTEM = -I添加到项目的*.pro文件中,错误消失了。