News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

headers suggestions

Started by nick name, September 08, 2017, 11:10:29 AM

Previous topic - Next topic

nick name

I decieded to update my old version of codeblocks (11.12) to the last one I could find, 16.01. I noted that when I type "#include <", the standard headers are'nt displayed. The only suggesions are in the header's search directories I added to the project. I searched in the Editor's parameters and did not find any solutions. Is it possible to display them without adding a search directory of the main header's directory for each projects ?

BlueHazzard

Have you started to type more characters? The completion should kick in after 3 letters.

oBFusCATed

State your OS and compiler versions, please.
(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!]

nick name

#3
Quote from: BlueHazzard on September 08, 2017, 01:48:42 PM
Have you started to type more characters? The completion should kick in after 3 letters.
Of course, and even with the ctrl+space, it just suggest the headers in the added directories.
I have Code::Blocks 16.01, and MinGW with gcc 6.3.0, and my os is windows 10 wow64

oBFusCATed

@ollydbg: Is there a way to see the folders that the CC plugin detects by calling GCC? On linux this is possible by using the -v --debug-log flags when starting C::B in terminal. But I don't have an idea if this works similarly on windows.
(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!]

ollydbg

Quote from: oBFusCATed on September 09, 2017, 04:45:34 PM
@ollydbg: Is there a way to see the folders that the CC plugin detects by calling GCC? On linux this is possible by using the -v --debug-log flags when starting C::B in terminal. But I don't have an idea if this works similarly on windows.
yes, the same thing under Windows, the log messages are shown in "debug log" panel.
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

oBFusCATed

@nick name:
Can you start codeblocks from a cmd.exe window and can you pass these two arguments "-v --debug-log" (without the quotes)?
Then try to reproduce the problem and paste the contents of the "Debug log" window here using code or quote tags.
(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!]

nick name

#7
I started CB with arguments -v --debug-log, and it worked! the output when loading headers is

"ClassBrowser::OnThreadEvent(): Updating class browser...
ClassBrowser::OnThreadEvent(): Class browser updated.
SystemHeadersThread: C:\MinGW\lib\gcc\mingw32\6.3.0\include\c++\ , 656
SystemHeadersThread: C:\MinGW\lib\gcc\mingw32\6.3.0\include\c++\mingw32\ , 23
SystemHeadersThread: C:\MinGW\lib\gcc\mingw32\6.3.0\include\c++\backward\ , 8
SystemHeadersThread: C:\MinGW\lib\gcc\mingw32\6.3.0\include\ , 90
SystemHeadersThread: C:\MinGW\include\ , 2346
SystemHeadersThread: C:\MinGW\lib\gcc\mingw32\6.3.0\include-fixed\ , 3
SystemHeadersThread: C:\MinGW\mingw32\include\ , 5
SystemHeadersThread: Total number of paths: 7"
and it resolved my problem because when I rebooted my CB, the suggestions were rights. Thank you for help!

oBFusCATed

This is strange. Anyway good to know that the problem is no resolved.

Can you tell me if it works when you start codeblock without passing these two parameters?
(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!]

nick name

Since I started cb in debug mode, suggestions are alwayse rights. I don't know if the problem was resolved thanks to the debug mdoe or by itself, but it works  ;D