سؤال

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.

C++ Standard in NetBeans IDE 8.0

If using C++98 with MinGW Distro, the "new" language features of C++11 aren't auto-completed (correct behaviour):

C++98 Autocompletion in NetBeans IDE 8.0

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):

C++11 Autocompletion in NetBeans IDE 8.0

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.

  1. What can cause the problem described?
  2. 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.

هل كانت مفيدة؟

المحلول

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.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top