User forums > Help
Inconsistent autocomplete behavior between Windows and Linux
AbdelrahmanSaid:
I am having strange issues when using Code::Blocks in Linux Mint 19.
For instance, if I include the string class and try to declare a string varaible by typing std::string, the autocomplete doesn't show string. It only shows stringbuf and stringstream. The code still works as expected, it just doesn't show in the autocomplete.
Additionally, the autocomplete doesn't work for any of the methods under the string class. For instance, if I have a string variable called str, and then I type str.find, the autocomplete won't appear at all. If I press Ctrl+Space, nothing would happen.
None of these issues happen on Windows.
The reason I need the autocompletion is that I am still new to C++, so having a good autocomplete function helps me a lot.
Any ideas why I am having these weird issues?
huycan:
I tested it under Linux Mint 19.3 Xfce.... and it works fine...
stahta01:
--- Quote from: huycan on June 10, 2020, 01:09:18 am ---I tested it under Linux Mint 19.3 Xfce.... and it works fine...
--- End quote ---
This implies it is an missing Linux package or an C::B setting issue.
To the OP: Did you try installing dev pckages related to the missing features?
huycan: Do you have any special settings to make auto completion work in C::B?
Edit2: AbdelrahmanSaid: You did include the correct header, right?
Tim S.
huycan:
Ok.... The problem is with the gcc compiler came with Linux Mint 19.3 ... Mine is the gcc 9.3 that I built myself... and that version's working fine... I tested by switching back to gcc 7.5 (came with Linux Mint) and voila... the problem happened just like the OP described....
AbdelrahmanSaid:
Thanks for the help, guys. I haven't tested with other versions of the compiler as I only have the one that comes by default at the moment.
Any ideas how can I fix this issue with the current compiler, or do I need to install a new version?
Navigation
[0] Message Index
[#] Next page
Go to full version