Author Topic: Adding paths to Code Completion search path  (Read 9384 times)

Offline ironhead

  • Almost regular
  • **
  • Posts: 210
Adding paths to Code Completion search path
« on: May 24, 2011, 02:15:39 pm »
Hi All,

I'm using Code::Blocks nightlies with the mingw-w64 native 64-bit compiler but code completion is not finding the system headers (i.e. no Code Completion for any system functions).  How do I add additional paths for Code Completion to parse for tags/tokens?

Thank you,

Chris

Offline ironhead

  • Almost regular
  • **
  • Posts: 210
Re: Adding paths to Code Completion search path
« Reply #1 on: May 25, 2011, 04:51:57 am »
Replying to my own question, add the paths to Global Compiler Settings > Search Directories > Compiler.

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5913
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: Adding paths to Code Completion search path
« Reply #2 on: May 25, 2011, 07:30:16 am »
CC should automatically fetch the default search path of the MinGW64 compiler,  I guess there are something different in 64bit MinGW.

can you post the debug-log of codeblocks when a project is loading.
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.

Offline ironhead

  • Almost regular
  • **
  • Posts: 210
Re: Adding paths to Code Completion search path
« Reply #3 on: May 25, 2011, 01:09:02 pm »
can you post the debug-log of codeblocks when a project is loading.

Sure, how do I enable the debug-log?

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5913
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: Adding paths to Code Completion search path
« Reply #4 on: May 25, 2011, 01:24:23 pm »
read 7.1 Debug Log output, just start codeblocks with such option.
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.

Offline Loaden

  • Lives here!
  • ****
  • Posts: 1014
Re: Adding paths to Code Completion search path
« Reply #5 on: May 25, 2011, 05:03:53 pm »
Fixed in rev7159.

Offline ironhead

  • Almost regular
  • **
  • Posts: 210
Re: Adding paths to Code Completion search path
« Reply #6 on: May 25, 2011, 07:00:09 pm »
Perfect thank you!  Now all I need is a new nightly.... ;)

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5913
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: Adding paths to Code Completion search path
« Reply #7 on: May 26, 2011, 05:01:08 am »
Fixed in rev7159.
That's a great work!! But I do NOT have a mingw64 compiler + win7 64 system to test it.
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.

Offline Loaden

  • Lives here!
  • ****
  • Posts: 1014
Re: Adding paths to Code Completion search path
« Reply #8 on: May 26, 2011, 07:55:49 am »
Fixed in rev7159.
That's a great work!! But I do NOT have a mingw64 compiler + win7 64 system to test it.
Don't worry, I am tested on XP-64bit.
It's works well now.
 :lol:

Offline ironhead

  • Almost regular
  • **
  • Posts: 210
Re: Adding paths to Code Completion search path
« Reply #9 on: May 27, 2011, 12:34:36 pm »
Fixed in rev7159.
That's a great work!! But I do NOT have a mingw64 compiler + win7 64 system to test it.
Don't worry, I am tested on XP-64bit.
It's works well now.
 :lol:

Thank you for the quick fix Loaden!  Once there is a new nightly I'll be able to validate the fix on win7 x64.