vscode-cpptools
vscode-cpptools copied to clipboard
'__float128' on Windows
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.
Originally posted by @Phantom-Trigger in https://github.com/microsoft/vscode-cpptools/discussions/9232
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.
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.
NOTE: This bug is causing failures with the boost/geometry library: https://github.com/microsoft/vscode-cpptools/issues/9657
Has there been any updates on this issue? Kind of makes boost development a pain...
@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.
Fix available in pre-release https://github.com/microsoft/vscode-cpptools/releases/tag/v1.17.0.
Fixed in release version https://github.com/microsoft/vscode-cpptools/releases/tag/v1.17.2.