简体   繁体   中英

VSC run code analysis __float128 is not supported on this target

提示:本站收集StackOverFlow近2千万问答,支持中英文搜索,鼠标放在语句上弹窗显示对应的参考中文或英文, 本站还提供   中文简体   中文繁体   中英对照 版本,有任何建议请联系yoyou2525@163.com。

Every time I run code analysis in C++ project I receive __float128 is not supported on this target

Is any possibility to turn off those kind of clang errors?

I have been searching answer for hours, but could not find anything.

My setup: Visual Studio Code V1.70.0, cmake, GCC v11.3.0., clang built with VSC, C++20

The whole error:

[{
    "resource": "/d:/OneDrive/Documents/Programming languages/c++/Projects/firstProject/main.cpp",
    "owner": "clang-tidy",
    "code": "clang-diagnostic-error",
    "severity": 8,
    "message": "Error while processing",
    "source": "C/C++",
    "startLineNumber": 1,
    "startColumn": 1,
    "endLineNumber": 1,
    "endColumn": 2,
    "relatedInformation": [
        {
            "startLineNumber": 101,
            "startColumn": 3,
            "endLineNumber": 101,
            "endColumn": 13,
            "message": "__float128 is not supported on this target",
            "resource": "/C:/msys64/mingw64/include/c++/11.3.0/bits/std_abs.h"
        },
        {
            "startLineNumber": 102,
            "startColumn": 7,
            "endLineNumber": 102,
            "endColumn": 17,
            "message": "__float128 is not supported on this target",
            "resource": "/C:/msys64/mingw64/include/c++/11.3.0/bits/std_abs.h"
        },
        {
            "startLineNumber": 1049,
            "startColumn": 21,
            "endLineNumber": 1049,
            "endColumn": 31,
            "message": "__float128 is not supported on this target",
            "resource": "/C:/msys64/mingw64/include/c++/11.3.0/bits/stl_algobase.h"
        },
        {
            "startLineNumber": 138,
            "startColumn": 22,
            "endLineNumber": 138,
            "endColumn": 32,
            "message": "__float128 is not supported on this target",
            "resource": "/C:/msys64/mingw64/include/c++/11.3.0/numbers"
        },
        {
            "startLineNumber": 138,
            "startColumn": 37,
            "endLineNumber": 138,
            "endColumn": 47,
            "message": "__float128 is not supported on this target",
            "resource": "/C:/msys64/mingw64/include/c++/11.3.0/numbers"
        },
        {
            "startLineNumber": 143,
            "startColumn": 22,
            "endLineNumber": 143,
            "endColumn": 32,
            "message": "__float128 is not supported on this target",
            "resource": "/C:/msys64/mingw64/include/c++/11.3.0/numbers"
        },
        {
            "startLineNumber": 143,
            "startColumn": 41,
            "endLineNumber": 143,
            "endColumn": 51,
            "message": "__float128 is not supported on this target",
            "resource": "/C:/msys64/mingw64/include/c++/11.3.0/numbers"
        },
        {
            "startLineNumber": 148,
            "startColumn": 22,
            "endLineNumber": 148,
            "endColumn": 32,
            "message": "__float128 is not supported on this target",
            "resource": "/C:/msys64/mingw64/include/c++/11.3.0/numbers"
        },
        {
            "startLineNumber": 148,
            "startColumn": 42,
            "endLineNumber": 148,
            "endColumn": 52,
            "message": "__float128 is not supported on this target",
            "resource": "/C:/msys64/mingw64/include/c++/11.3.0/numbers"
        },
        {
            "startLineNumber": 153,
            "startColumn": 22,
            "endLineNumber": 153,
            "endColumn": 32,
            "message": "__float128 is not supported on this target",
            "resource": "/C:/msys64/mingw64/include/c++/11.3.0/numbers"
        },
        {
            "startLineNumber": 153,
            "startColumn": 38,
            "endLineNumber": 153,
            "endColumn": 48,
            "message": "__float128 is not supported on this target",
            "resource": "/C:/msys64/mingw64/include/c++/11.3.0/numbers"
        },
        {
            "startLineNumber": 158,
            "startColumn": 22,
            "endLineNumber": 158,
            "endColumn": 32,
            "message": "__float128 is not supported on this target",
            "resource": "/C:/msys64/mingw64/include/c++/11.3.0/numbers"
        },
        {
            "startLineNumber": 158,
            "startColumn": 42,
            "endLineNumber": 158,
            "endColumn": 52,
            "message": "__float128 is not supported on this target",
            "resource": "/C:/msys64/mingw64/include/c++/11.3.0/numbers"
        },
        {
            "startLineNumber": 163,
            "startColumn": 22,
            "endLineNumber": 163,
            "endColumn": 32,
            "message": "__float128 is not supported on this target",
            "resource": "/C:/msys64/mingw64/include/c++/11.3.0/numbers"
        },
        {
            "startLineNumber": 163,
            "startColumn": 46,
            "endLineNumber": 163,
            "endColumn": 56,
            "message": "__float128 is not supported on this target",
            "resource": "/C:/msys64/mingw64/include/c++/11.3.0/numbers"
        },
        {
            "startLineNumber": 168,
            "startColumn": 22,
            "endLineNumber": 168,
            "endColumn": 32,
            "message": "__float128 is not supported on this target",
            "resource": "/C:/msys64/mingw64/include/c++/11.3.0/numbers"
        },
        {
            "startLineNumber": 168,
            "startColumn": 39,
            "endLineNumber": 168,
            "endColumn": 49,
            "message": "__float128 is not supported on this target",
            "resource": "/C:/msys64/mingw64/include/c++/11.3.0/numbers"
        },
        {
            "startLineNumber": 173,
            "startColumn": 40,
            "endLineNumber": 173,
            "endColumn": 50,
            "message": "__float128 is not supported on this target",
            "resource": "/C:/msys64/mingw64/include/c++/11.3.0/numbers"
        },
        {
            "startLineNumber": 415,
            "startColumn": 39,
            "endLineNumber": 415,
            "endColumn": 49,
            "message": "__float128 is not supported on this target",
            "resource": "/C:/msys64/mingw64/include/c++/11.3.0/type_traits"
        }
    ]
}]
No answers.You can refer to the related questions on the right.
6 Decision variable float+ not supported

Hello I have a simple problem as follows: using CP; dvar float+ t; dexpr float cost = (2*t^2 + 16/t)*1000; minimize cost; subject to { 1<=t&lt ...

2021-05-04 08:39:16 1 34   cplex
暂无
暂无

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2022 STACKOOM.COM