Reputation: 4080
I am using the following combination for C++ development:
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.
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.
Upvotes: 2
Views: 1559