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.

Could not open Source file -

Am using CCS 5.5 -  Compiler version : c6000_ 7.4.4

When i compile my CCS project am getting the following error :

"../lib/Support/l_Interface/src/../include/../../../Support/include/Interface/../Sim/job.h", line 21: fatal error #5: could not open source file "../lib/Support/l_Interface/include/Subframe/cHI_Request.h"
1 fatal error detected in the compilation of "../lib/Support/Interface/src/cfile.cpp".
Compilation terminated.

>> Compilation failure
gmake: *** [lib/Support/l_Interface/src/cfile.obj] Error 1
Building file: ../lib/Support/l_Interface/src/Subframe/config.cpp
Invoking: C6000 Compiler
"/opt/ti/ccsv5/tools/compiler/c6000_7.4.4/bin/cl6x" -mv64+ --abi=coffabi -g --include_path="/opt/ti/ccsv5/tools/compiler/c6000_7.4.4/include" --define=tci6484 --display_error_number --diag_warning=225 --diag_wrap=off --preproc_with_compile --preproc_dependency="lib/Support/l_Interface/src/Subframe/config.pp" --obj_directory="lib/Support/l_Interface/src/Subframe"  "../lib/Support/l_Interface/src/Subframe/config.cpp"
Finished building: ../lib/Support/l_Interface/src/Subframe/config.cpp

File : ../lib/Support/l_Interface/include/Subframe/cHI_Request.h is available in my project folder and it gets linked to source file on pressing F3 key .

  • I presume the problem source line looks like ...

    #include "../lib/Support/l_Interface/include/Subframe/cHI_Request.h"
    

    That means that path must be valid from the perspective of one of these directories:

    1. The directory of the source file which contains that line
    2. The directories listed with the --include (equivalent is -I) options
    3. The directories given in the environment variable C6X_C_DIR

    The first one is probably most relevant.  My guess is that, while the file exists in the expected place, that is nonetheless not a valid path from the directory which contains the source file with the problem #include line.

    Thanks and regards,

    -George

  • Hi George ,

    I ported the linux compiled project directly in the CCS , without including the headers in the Include option .

    After i included the header file in "Include Options in properties" - i removed all the "../" file redirectory in the path and gave the direct path to source file included . 

    </TAG>

    My guess is that, while the file exists in the expected place, that is nonetheless not a valid path from the directory which contains the source file with the problem #include line.

    </TAG>

    Your guess is correct - when i gave a valid path of the included file , issue got resolved .

    Thank you.

    regards ,

    Vinodh