This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi,
I am using CCS 6 Beta 4.
I have a project with huge number of files. When i CTRL+Click on the function name it is taking me to the HEADER file wherer i defined the function prototype, instead of taking me to the actual function.
This is really very annoying.
Whats interesting is that other projects are working fine , only this particular project doesnt work.
My question is, How do i get it corrected. All files are linked well. There are NO ERRORS and the Project is working without any issues on the hardware.
Am i missing some setting ?
My code looks like this :
- - - - - - - - - - - - - - - - - - - - - - - -
Main.c :
#include "Common_Header.h" int main (void) { ... func1(); func2(); func3(); func4(); ... }
- - - - - - - - - - - - - - - - - - - - - - - -
Common_Header.h :
#include "Header1.h" #include "Header2.h" #include "Header3.h" #include "Header4.h"
- - - - - - - - - - - - - - - - - - - - - - - -
Header1.h:
... extern void func1(void);
- - - - - - - - - - - - - - - - - - - - - - - -
Header2.h:
... extern void func2(void);
- - - - - - - - - - - - - - - - - - - - - - - -
Header3.h:
... extern void func3(void);
So basically i will be including the Common_Header.h in all the C files.
No when i CTRL+CLICK on the func1(); in the main.c I expect it opens the C file havint the func1, but it takes me to the Header1.h
Hi,
I use the F3 key for the same purpose. Just click on any part of the "funct();" and then press F3 key, it'll take you directly to the file where the subroutine function has been written.
Regards,
Gautam
Gautam Iyer said:Hi,
I use the F3 key for the same purpose. Just click on any part of the "funct();" and then press F3 key, it'll take you directly to the file where the subroutine function has been written.
Regards,
Gautam
F3 and CTRL+CLICK both are one and the same.
And No, It doesnt work with F3 either.
And Its not CCS settings too, because other project is working fine, So i wonder if there is any PROJECT specific settings ? Or the method that i mentioned in my FIRST post is causing the issue ??
F3 and CTRL+CLICK both are one and the same.
Ohh! I've never used CTRL + Click.
I expect it opens the C file havint the func1, but it takes me to the Header1.h
Can you further explain which C file are you talking about? Coz what I can see from above is func1(void) is in Header1.h file.
Also, you've declared :
#include 'Header1.h"
#include 'Header2.h"
#include 'Header3.h"
#include 'Header4.h"
Each Header has a corresponding C_File.
C_File1.c
C_File2.c
C_File3.c
C_File4.c
So the Func1(); is defined in the C_File1.c
Gautam Iyer said:Shouldn't it be #include "Header1.h" with double quotes on both the ends.
Cool... What if you do a F3 on: func1
extern
void
func1(
void
);
I guess you didn't understand what I meant. You mentioned earlier:
Header1.h:
1
2
3
|
... extern void func1( void ); |
- - - - - - - - - - - - - - - - - - - - - - - -
So, in this Header1.h file if you press F3 while keeping your cursor on func1.... does it take you to the C file or it doesn't direct you anywhere?
Regards,
Gautam
OK, I checked it now, For a few functions its taking me to the C_FIle, But few functions it doesnt take me anywhere
Ok, so func1 in main.c directs to -> extern func1 in Header1.h which in turn directs too -> func1 in c file.
This is the correct direction.
But few functions it doesnt take me anywhere
Don't know whats going on there! Please check the flow of the code.
Regards,
Gautam
The code is fully functional and if i see in the debugger, it goes to the proper file and function.