Ver2.3.0.3833 Goto Declaration/Implementation not working??

CodeLite installation/troubleshooting forum
Kee.Wang
CodeLite Curious
Posts: 2
Joined: Sun Mar 28, 2010 5:31 pm
Genuine User: Yes
IDE Question: C++
Contact:

Ver2.3.0.3833 Goto Declaration/Implementation not working??

Post by Kee.Wang »

Hi Gurus,

I'm newbie getting touch with Codelite and learning GTK+ development. It's weird that <Goto Declaration/Implementation> can NOT navigate me to the right code. Actually, nothing happened after I clicked the menu item. The functions I tried to search are GTK+ library functions like "gtk_init() ","gtk_window_new ",etc. Do I need to add GTK+'s include files into my workspace? If yes, then how? Cauze I also tried <Add Include File for "gtk_init()"> but in vain.

I've red the tip post of "Code Navigation" and it didn't help.

Thanks a lot!
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Ver2.3.0.3833 Goto Declaration/Implementation not working??

Post by eranif »

If you have the following set, it should work for you:

- Make sure that your file is part of a workspace
- Add to the code-completion parser the path to the GTK sources / headers, on my Ubuntu it is '/usr/include/gtk-2.0'
the code-completion parser include files search path can be edited from the main menu: 'Settings -> Tags Settings -> Include Files'
- Make sure that your code actually includes any file from the GTK library (e.g. #include <gtk/gtk.h>)

Please read this for better understanding how the code completion parser works:

http://codelite.org/LiteEditor/SettingUpCodeCompletion

In the future, please remember to mention your codelite version/OS

Eran
Make sure you have read the HOW TO POST thread
Kee.Wang
CodeLite Curious
Posts: 2
Joined: Sun Mar 28, 2010 5:31 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Ver2.3.0.3833 Goto Declaration/Implementation not working??

Post by Kee.Wang »

Got you!
Thanks a lot!
Post Reply