vscode-cpptools icon indicating copy to clipboard operation
vscode-cpptools copied to clipboard

'__float128' on Windows

Open Phantom-Trigger opened this issue 2 years ago • 3 comments

My IntelliSense doesn't work with __float128. My platform is Windows, compiler is gcc11.2.0 from winlibs, C/C++ Extension Version is 1.10.8. I've tried all possible options for "IntelliSense Mode" but all still have the same issue as #6574 (i.e. gives an IntelliSense error: identifier “__float128” is undefined). But it do compiled and run successfully. In comparison, when tested on Linux, this code isn't reported to have any error. 无标题 无标题2

Originally posted by @Phantom-Trigger in https://github.com/microsoft/vscode-cpptools/discussions/9232

Phantom-Trigger avatar Jul 08 '22 11:07 Phantom-Trigger

VS added support for __float128 in linux-gcc-x64 mode, but for some reason they didn't add it for windows-clang-x64 mode or to VS Code.

sean-mcmanus avatar Jul 08 '22 17:07 sean-mcmanus

I may have the same issue, using "intelliSenseMode": "windows-gcc-x64" compiling with ...msys64\\mingw64\\bin\\g++.exe when I #include <stdlib.h> I get:

std_abs.h[Ln 102, Col 3]: __float128 is not supported on this target.
std_abs.h[Ln 103, Col 7]: __float128 is not supported on this target.

Clicking through to std_abs.h shows me:

identifier "__float128" is undefined C/C++(20 [Ln 103, Col 2]
identifier "__float128" is undefined C/C++(20 [Ln 103, Col 7]

Also, my project builds and links correctly, vscode is just popping these up as "Problems" while editing.

Benzolio avatar Jul 19 '22 20:07 Benzolio

NOTE: This bug is causing failures with the boost/geometry library: https://github.com/microsoft/vscode-cpptools/issues/9657

sean-mcmanus avatar Aug 05 '22 23:08 sean-mcmanus

Has there been any updates on this issue? Kind of makes boost development a pain...

LitMSCTBB avatar Feb 16 '23 01:02 LitMSCTBB

@LitMSCTBB A while back it got fixed in VS, but the fix was not completed for VS Code because of various issues/differences. We would have to complete that work.

sean-mcmanus avatar Feb 16 '23 02:02 sean-mcmanus

Fix available in pre-release https://github.com/microsoft/vscode-cpptools/releases/tag/v1.17.0.

michelleangela avatar Jul 27 '23 03:07 michelleangela

Fixed in release version https://github.com/microsoft/vscode-cpptools/releases/tag/v1.17.2.

michelleangela avatar Aug 15 '23 00:08 michelleangela