News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

help! right-click to "find declaration of..." not working??

Started by oats, November 08, 2007, 06:12:27 PM

Previous topic - Next topic

oats

Hi,
I have been using code::blocks for quite a while, but am not a very advanced user.  I am quite used to the feature where I can right-click on a function/variable and jump to its declaration or implementation.  I have gotten this to work in the past, but I just created a new project and I don't know what I need to do.  The problem is that the function or class data has not been compiled yet, I think.  How can I do this?

One problem is that I am using CB as my dev environment, but I can't actually use it to compile.  The two development environments I use are MPLAB (for embedded developement) and NI LabWindows (for GUI development) and neither compiler is compatible with CB.  Still, the projects I create are just basic C code, so CB should be able to browse the functions and variables?  Please help!
Thanks!

MortenMacFly

Quote from: oats on November 08, 2007, 06:12:27 PM
Please help!
Post a sample project and users might be able to setup a C::B project properly for you.
With regards, Morten.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

oats

i am not that concerned with compiling right now.... i just want the right-click to "find declaration of" to work!!

what is required to do so?  do i need to compile somehow?

MortenMacFly

Quote from: oats on November 09, 2007, 04:13:05 PM
what is required to do so?  do i need to compile somehow?
Thomas has reported similar issues. I'm sorry, but I can't help you here because it just works for me. You may want to PM Thomas but I'm not sure if he has the time to investigate. Anyway. If you provide a project I *might* be able to reproduce.
With regards, Morten.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

dje

Hi !

When this does not work:
I select the Symbols tab of the Management notebook
I right click on the Symbols item of the tree (root)
I click on re-parse now

This force the projects to be reparsed and the find items work again.

I hope it helps !

Dje

oats

Dje,

thanks so much!!!  this is exactly what I needed to do!  you are the best!

note to developers, i think a better design would automatically re-parse whenever a given function could not be found.  also perhaps placing this "re-parse symbols" command somewhere in the main menubar as well.  i spent a long time looking in the main menubar.

dje

Quote from: oats on November 13, 2007, 07:24:25 PM
thanks so much!!!  this is exactly what I needed to do!  you are the best!
8) A pleasure to help you !

Quote from: oats on November 13, 2007, 07:24:25 PM
i think a better design would automatically re-parse whenever a given function could not be found.  also perhaps placing this "re-parse symbols" command somewhere in the main menubar as well.  i spent a long time looking in the main menubar.

Few time ago, all was automatically managed.
I think there is a regression and what I gave is just a workaround.

Dje