News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

code completion problems with mingw-32 gcc g++ 5.3.0-2

Started by 7sean68, December 22, 2016, 02:30:09 PM

Previous topic - Next topic

7sean68

code completion has some problems with mingw-32 gcc g++ 5.3.0-2 for example it won't show any suggestions for string functions (ie when u have a string s then try to type "s." it won't show any suggestions.) same for begin() and end() functions for all classes. I  think it has something to do with the #if surrounding these functions in g++ 5.3.0-2 I tried to declare a variable inside a #if, as expected the plugin didn't see the variable  :'(



so does anyone here have experience in the development of this plugin ... I think it won't be much work. I intend to do it but I need someone experienced

oBFusCATed

Do you have a minimal example that reproduces the problem?
Make sure there are no include directives inside it.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

7sean68

no I was wrong.
I have to type using namespace std::__cxx11; for the code completion to see string methods but that line is not necessary to run string methods it only needs using namespace std;

oBFusCATed

(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

7sean68

so, is there any plans for improving it to be c++11 capable as the default mode for C is now -std=gnu11.
If so I'd like to participate.   :D

yvesdm3000

There is also the code-completion plugin based on clang.

Yves
Clang based code completion for Code::Blocks:   [url="http://github.com/yvesdm3000/ClangLib"]http://github.com/yvesdm3000/ClangLib[/url]