Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Compiler intrinsic #defines not recognized by text editor for AVX2
Compiler intrinsic #defines not recognized by text editor for AVX2 [message #1814292] Sun, 08 September 2019 20:12 Go to next message
Aaron Boxer is currently offline Aaron BoxerFriend
Messages: 1
Registered: September 2019
Junior Member
I am using Eclipse CDT on Linux with g++ compiler.
I have added "-mavx2" compiler flag,and __AVX2__ is defined,
but in the code editor, code is greyed out inside

#ifdef __AVX2

#endif
Re: Compiler intrinsic #defines not recognized by text editor for AVX2 [message #1814367 is a reply to message #1814292] Tue, 10 September 2019 09:46 Go to previous message
David VavraFriend
Messages: 1426
Registered: October 2012
Senior Member
You need to add -mavx2 to the builtins provider command
Project --> Properties --> C/C++ General --> Preprocessor Include Paths, Macros etc. --> Providers tab --> CDT GCC Built-in Compiler Settings
enable the provider and disable "use global provider"
edit the command:
index.php/fa/36256/0/
Previous Topic:eclipse and visual studio perspectives
Next Topic:(Fixed) Enable g++ compiler warnings
Goto Forum:
  


Current Time: Tue Dec 03 17:55:27 GMT 2024

Powered by FUDForum. Page generated in 0.02943 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top