首页 » 嵌入式笔记 » 正文

QT:编译问题整理

编译错误

undefined reference to ‘accept4’

打开文件qplatformdefs.h增加
#undef O_CLOEXEC
此处主要为解决:编译过程中找不到accept4函数问题

error: ‘stderr’ was not declared in this scope

出现版本:5.12.1 编译器,HISIV500 UCLIBC

修改文件/nfsdir/justchen/sourceCode/qt-everywhere-src-5.12.1/qtbase/src/corelib/tools/qhash.cpp 添加 #include <stdio.h>

发表评论