Author Topic: Code completion doesn't always work  (Read 4147 times)

Offline Maxim Levitsky

  • Single posting newcomer
  • *
  • Posts: 4
Code completion doesn't always work
« on: April 16, 2009, 02:19:04 pm »
I don't seem to make code competion to work

I added /usr/include/gtk-2.0/gtk, and yet many symbols are missing, eg:

gtk_window_new.

It seems that even if I remove /usr/include/gtk-2.0/gtk from project C+/C parser paths, I get same results.
Very weird

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5915
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: Code completion doesn't always work
« Reply #1 on: April 16, 2009, 03:57:19 pm »
Works fine in Windows with Mingw and wxWidgets and many libraries.

My question:

Did you add the related header file in your project?
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 Maxim Levitsky

  • Single posting newcomer
  • *
  • Posts: 4
Re: Code completion doesn't always work
« Reply #2 on: April 16, 2009, 08:50:39 pm »
I only need to add it to "additional C parser path in project properties" ? or I need to add headers into the project?

(And both doesn't work)
« Last Edit: April 16, 2009, 09:18:01 pm by Maxim Levitsky »

Offline Maxim Levitsky

  • Single posting newcomer
  • *
  • Posts: 4
Re: Code completion doesn't always work
« Reply #3 on: April 18, 2009, 09:58:27 pm »
And meanwhile a solution is to install codelite - codeblocks but much better in browsing.
No offfence of course, codeblocks is great, i'll just wait till it gets proper browsing, since this is all I need
(and never had in linux)


Offline Maxim Levitsky

  • Single posting newcomer
  • *
  • Posts: 4
Re: Code completion doesn't always work
« Reply #4 on: May 06, 2009, 01:50:11 am »
Bump