View previous topic :: View next topic |
Author |
Message |
prondeau
Joined: 26 Mar 2008 Posts: 11
|
Function Symbols |
Posted: Mon Jan 07, 2013 10:14 pm |
|
|
Perhaps there is an option I need to enable but when I compile my project, if I look under Symbols on the Project window I see Variables, Tyedefs, Enumerators and Defines. I don't see Functions or Prototypes like I usually see on other projects.
Additionally, "Go to Locator" is capable of finding variable definitions but it won't find functions. If I choose Go To.. i do see the functions there in a drop down. "Enable Tag locators" is enabled and set to update on recompile. My project compiles and runs properly on the target hardware. Chip is a pic18F46J50 and compiler version 4.140.
Any ideas? |
|
|
SherpaDoug
Joined: 07 Sep 2003 Posts: 1640 Location: Cape Cod Mass USA
|
|
Posted: Wed Jan 09, 2013 8:41 am |
|
|
Could it be that your functions have been inlined and no longer exist as discreet entities? _________________ The search for better is endless. Instead simply find very good and get the job done. |
|
|
prondeau
Joined: 26 Mar 2008 Posts: 11
|
|
Posted: Thu Jan 10, 2013 2:56 pm |
|
|
I wouldn't think so but I guess anything is possible. If I right click on a function and choose "Go To..." All the functions are visible there in the "Select a Function Definition" Drop down box. |
|
|
prondeau
Joined: 26 Mar 2008 Posts: 11
|
|
Posted: Sat Jan 19, 2013 2:43 pm |
|
|
Another new development.
When my project was quite small all the prototypes were at the top of my main C code file.
As the project has grown, I have moved all the prototypes off to a separate header file.
In the process I have also incorporated the serial2 usb example code into my project.
At this time, all of my prototypes now show up, but none of the functions they target are listed in the function section.
Strangely, however, all of the prototypes AND functions added by the usb_cdc code do show up. ???? |
|
|
Ttelmah
Joined: 11 Mar 2010 Posts: 19539
|
|
Posted: Sat Jan 19, 2013 3:03 pm |
|
|
Put your real function definitions in front of where they are used. If you think about the USB code, the prototypes, _and_ definitions are both placed in front of the 'main' code.
The compiler knows how to look for later definitions, MPLAB doesn't.
Best Wishes |
|
|
|