Update 1 has been released to NetBeans 8.0, which fixes many bugs according C++11 and it's code assistance. You can see the fixed bugs here. Please update and test again.
Incorrect C++ Autocompletion in NetBeans IDE 8 using MinGW/Cygwin
質問
I am using the following combination for C++ development:
- Microsoft Windows 8.1 x64
- MinGW Distro 11.6
- Cygwin 1.7.28
- NetBeans IDE 8.0
First of all: I am able to compile source code both with MinGW and with Cygwin. The problem I describe in this question is related to both environments (or NetBeans).
Depending on the C++ standard to use for the project (see screenshot), the autocompletion doesn't work correctly in NetBeans IDE. In addition the behaviour of the autocompletion isn't consistent between using MinGW and Cygwin.
If using C++98 with MinGW Distro, the "new" language features of C++11 aren't auto-completed (correct behaviour):
If using C++11 with MinGW Distro, the "new" language features of C++11 are auto-completed, but std::vector
(maybe some others too) isn't fully autocompleted (incorrect behaviour):
If using Cygwin, I am unable to get autocompletion to work correctly with std::vector
at all, regardless of the C++ standard choosen in the IDE.
Therefore I assume that the problem is maybe related to some missing or superflucios macro definitions in the NetBeans IDE configuration for each environment.
Again: I am able to compile the code, regardless of the auto completion errors.
- What can cause the problem described?
- Do you know a solution for the problem?
I already asked a similar question here some time ago. The problems described there seem to be fixed in NetBeans IDE 8.0, since new C++11 features are detected properly.
解決