User forums > Nightly builds

The 17 September 2011 build (7452) is out.

<< < (11/14) > >>

Jenna:

--- Quote from: oBFusCATed on October 13, 2011, 07:39:23 pm ---2. update your ubuntu

--- End quote ---

He uses mint, which is based on ubuntu (or directly on debian ?, not sure at the moment), but nevertheless updating might help, see this post: http://forums.codeblocks.org/index.php/topic,15342.msg102985.html#msg102985

By the way: please search the forum for a solution, before asking questions, that might have been answered before.
Not searching violates our forum rules.

coppolo:
I hope this is the right place for it... sorry if it is not.

Maybe it's a known issue (I could not find something like that in previous posts), but "Find declaration" and "Find implementation" does not work correctly with this code (you can try it in a new project):


--- Code: ---int foo()
{
  return 0;
}

void bar(void)
{
  foo();        // declaration and implementation are found correctly
  switch(0)
  {
    case 0:
      return foo();  // IT DOES NOT WORK while searching foo() declaration or implementation
  }
}
--- End code ---

OS: Win Vista

Alpha:

--- Quote from: coppolo on October 14, 2011, 12:09:31 pm ---
--- Code: ---[...]
void bar(void)
{
  [...]
      return foo();  // IT DOES NOT WORK while searching foo() declaration or implementation
}
--- End code ---

--- End quote ---
A void function cannot return anything (this may or may not be the reason for the problem though - I have yet to test).

coppolo:
The problem occurs regardless of the function return type (I made a mistake by writing void instead of int, but the result does not change).

eckard_klotz:
Hello Everybody.

I can confirm the effect described by coppolo. I have implemented the functions foo() and bar() in a c-file and decleard them in an h-file.


* 1. If I use tle lony foo() to search for the declaration C::B jumps into the h-file, if I search for the declaration and it jumps to the implementation if Search for this.

* 2. If I use the foo() after the reurn the search for the declaration C::B jumps to the implementation and the search for the implementation fails.

* 3. But if I write return(foo()); istead of return foo() ; what means I use the return like a function with brackets it works like described under 1.

Best regards,
                  Eckard.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version