Fail to include; fatal error #5: could not open source
Please see the attached png.
Can you tell what I have omitted to do?
I am using CCSv5.5
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.
Fail to include; fatal error #5: could not open source
Please see the attached png.
Can you tell what I have omitted to do?
I am using CCSv5.5
Hi Leonard,
a few more details might be helpful, however, one common thing this error indicates is a problem in the include paths/options or a permissions issue.
Please see this wiki and keep us informed.
http://processors.wiki.ti.com/index.php/Include_paths_and_options
Best Regards,
Lisa
Thanks Lisa, I looked through the link you provided but did not catch anything that might help.
Note the following from the png:
1. highlighted in pink, is the error, Clock.h was not "found".
2. see in the popup, and in the project, that the path for knl is set.
3. see in the project that the project knows where Clock.h is (I can open it).
4. see that prd.h in ti/bios/include is found (and others, including C6xCSL headers, that are nor show).
I used the same procedure to specify each path.
Leonard
Hi Leonard,
have you double checked the compiler include options? Also permissions (thought this is not super likely)
Best Regards,
Lisa
Lisa,
Thanks for checking on me.
I have found no solution to the problem
It appears that in spite of the fact that CCSv5 can see the header, and has the header in the project, has the file in an include path, it will not find it.
Do you see anything wrong with the following (Clock.h is in knl)?
"C:/ti/ccsv5/tools/compiler/c6000_7.4.6/bin/cl6x" -mv6700 --abi=coffabi -g --include_path="C:/ti/bios_6_35_04_50/packages/ti/sysbios/knl" --include_path="C:/ti/bios_6_35_04_50/packages/ti/sysbios/hal" --include_path="C:/ti/bios_6_35_04_50/packages/ti/sysbios/knl/package" --include_path="C:/ti/ccsv5/tools/compiler/c6000_7.4.6/include" --include_path="C:/ti/bios_6_35_04_50/packages/ti/bios/include" --include_path="C:/ti/xdctools_3_25_04_88/packages" --include_path="C:/Program Files/C6xCSL/include" --define="CHIP_6713" --define=c6713 --display_error_number --diag_warning=225 --diag_wrap=off --preproc_with_compile --preproc_dependency="aic23.pp" "../aic23.c"
"C:/ti/bios_6_35_04_50/packages/ti/bios/include/prd.h", line 45: fatal error #5: could not open source file "ti/sysbios/knl/Clock.h"
1 fatal error detected in the compilation of "../aic23.c".
Leonard
Hi Leonard,
Hmm, do you get the same problem if you try a fresh workspace with a built in SYSBIOS exampe from the new project wizard?
I see the file in my installation in that folder.
How are you making sure the include path is there as well?
Best regards,
Lisa
Leonard Jowers86084 said:"C:/ti/bios_6_35_04_50/packages/ti/bios/include/prd.h", line 45: fatal error #5: could not open source file "ti/sysbios/knl/Clock.h"
Since the #include statement in prd.h has this:
#include <ti/sysbios/knl/Clock.h>
the --include_path specified under compiler options should point to the root directory which when appended to the above path will give the full path to Clock.h. So the Compiler's include path should contain just C:/ti/bios_6_35_04_50/packages. Add this path to the Compiler's include paths and let us know if that helps.
AartiG.
Thanks. Sounds like a probable correction.
Unfortunately, I will not get an opportunity to try it until this Friday.
I had looked for those types of errors but I followed the style of other .
I'll try it!
Leonard