cancel
Showing results for 
Search instead for 
Did you mean: 

PSoC 5, 3 & 1 MCU

JoBr_1593366
Contributor II

Often when I right-click a function name and select Go To Definition, it doesn't work.  I get this error:

We were unable to find the symbol 'FunctionName. There are several things that can hinder symbol lookup:      

  • Make sure your project compiles without errors.      
  • Make sure your "Generated Source" has been generated (Build -> Generate Application).      
  • Make sure your .c files #include their corresponding header files.

The project compiles without errors, the Generated Source has been generated, and the .c files include the .h files which declare the function.

I don't understand why this works for some functions and not others.

I have to use Ctrl+Shift+F and search for the function definition manually.

Has anyone had this problem and figured it out?

0 Likes
3 Replies
DheerajK_81
Moderator
Moderator

Yes, this happens sometimes due to PSoC Creator file linking not working properly. A clean and build will help solve this issue

Regards,

Dheeraj

0 Likes
JoBr_1593366
Contributor II

I have already tried clean and build and it doesn't help.

It even happens when the function and the call to that function are in the same .c file.

0 Likes
DheerajK_81
Moderator
Moderator

Please use "Find all active references" option to locate the files in case the find declaration doesn't work.

Regards,

Dheeraj

0 Likes