Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

eclipse: code assistant show the wrong value for __cplusplus macro (IDFGH-283) #2170

Open
dsptech opened this issue Jul 9, 2018 · 1 comment
Labels
Platform: Windows issues pertain to Windows

Comments

@dsptech
Copy link

dsptech commented Jul 9, 2018

Environment

  • Development Kit: [none]
  • Kit version (for WroverKit/PicoKit/DevKitC): [none]
  • Core (if using chip or module): [ESP32]
  • IDF version (any version)
  • Development Env: [Eclipse]
  • Operating System: [Windows]
  • Power Supply: [not applicable]

Problem Description

__cplusplus has value 199711L but it should be 201103L (makefile use -std=gnu++11).
Also STDC_VERSION has the wrong value in code assistant (but the compiling work fine)

To solve the issue, the settings: -std=gnu++11 and -std=gnu99 must be included in "CDT Cross GCC Built-in Compiler Settings" provider string.

@FayeY FayeY changed the title eclipse: code assistant show the wrong value for __cplusplus macro [TW#24190] eclipse: code assistant show the wrong value for __cplusplus macro Jul 12, 2018
@projectgus projectgus changed the title [TW#24190] eclipse: code assistant show the wrong value for __cplusplus macro eclipse: code assistant show the wrong value for __cplusplus macro (IDFGH-283) Mar 12, 2019
@dsptech
Copy link
Author

dsptech commented May 31, 2019

Hi,
the issue is solved also by this workaround:
#17 (comment)

Regards.

@tom-borcin tom-borcin added the Platform: Windows issues pertain to Windows label Mar 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Platform: Windows issues pertain to Windows
Projects
None yet
Development

No branches or pull requests

2 participants