Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: sanpra1989 on November 13, 2015, 11:48:51 pm

Title: Find declaration for member function defined in the same file
Post by: sanpra1989 on November 13, 2015, 11:48:51 pm
I am using Code::Blocks 13.12 on Ubuntu 14.04. I have created a project with include files in a separate directory from the source. I have added the include directory in the search path for the project. The problem now is that "Find declaration of" doesn't always work for member functions. Specifically, if I try to find the declaration of a member function from a file that contains the definition, I am led to the definition. If I choose "Find declaration of" from the definition of a member function, I stay there. Finding the declaration works fine if it's a Class or a member variable, or if the member function definition is in a different file.

EDIT: The option doesn't really work for member variables or classes either. I was misled to believe so because I had tried cases where declaration and definition were the same.
Title: Re: Find declaration for member function defined in the same file
Post by: ollydbg on November 15, 2015, 07:45:43 am
I am using Code::Blocks 13.12 on Ubuntu 14.04.
...
Can you try a nightly build version of C::B, 13.12 is two years ago. And please show us some sample code, thanks.