当工程中使用omp时,clang-tidy report 会报错如下,有没解决办法?



  • 使用版本4.7 4.8 以及最新版本,macOS下面。
    错误日志如下

    附上 bug链接:https://bugreports.qt.io/browse/QTCREATORBUG-21591
    ,把Vote +1 。

    In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/iostream:37:
    
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/__config:51:2: error: Unknown object file format
    
    #error Unknown object file format
    
    ^
    
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/__config:292:11: fatal error: 'endian.h' file not found
    
    include <endian.h>
    ^~~~~~~~~~
    

Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.