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.

Header file error

Other Parts Discussed in Thread: CCSTUDIO

When I try to run lab2 I get an error message that the dsk6416.h file has not been located.the file is included in the documents folder,I've manually added it to the project folder but it still doesn't work.

I've even added the directory of the header file in the build options section under linker but it still doesn't work.

here's the error message:

------------------------------ lab2.pjt - Debug ------------------------------
[lab2.cdb] "C:\CCStudio_v3.1\plugins\bios\gconfgen" lab2.cdb

[Block_Sine.c] "C:\CCStudio_v3.1\C6000\cgtools\bin\cl6x" -g -fr"C:/CCStudio_v3.1/examples/dsk6416/bsl/lab2/Debug" -d"_DEBUG" -mv6400 -@"../../../CCStudio_v3.1/examples/dsk6416/bsl/lab2/Debug.lkf" "Block_Sine.c"

[Lab2.c] "C:\CCStudio_v3.1\C6000\cgtools\bin\cl6x" -g -fr"C:/CCStudio_v3.1/examples/dsk6416/bsl/lab2/Debug" -d"_DEBUG" -mv6400 -@"../../../CCStudio_v3.1/examples/dsk6416/bsl/lab2/Debug.lkf" "Lab2.c"
"Lab2.c", line 1: fatal error: could not open source file "dsk6416.h"
1 fatal error detected in the compilation of "Lab2.c".
Compilation terminated.

>> Compilation failure

[lab2cfg.s62] "C:\CCStudio_v3.1\C6000\cgtools\bin\cl6x" -g -fr"C:/CCStudio_v3.1/examples/dsk6416/bsl/lab2/Debug" -d"_DEBUG" -mv6400 -@"../../../../CCStudio_v3.1/examples/dsk6416/bsl/lab2/Debug.lkf" "lab2cfg.s62"

[lab2cfg_c.c] "C:\CCStudio_v3.1\C6000\cgtools\bin\cl6x" -g -fr"C:/CCStudio_v3.1/examples/dsk6416/bsl/lab2/Debug" -d"_DEBUG" -mv6400 -@"../../../../CCStudio_v3.1/examples/dsk6416/bsl/lab2/Debug.lkf" "lab2cfg_c.c"

Build Complete,
1 Errors, 0 Warnings, 0 Remarks.

  • Hi Siyom,

    Could you attach your project, I will build it for you and explain that what cause this error.

    It depends how you declared that include file in code.

    I've even added the directory of the header file in the build options section under linker but it still doesn't work.

    No, You have to add header files in "build" options section "compiler"

  • 8267.lab2.zip

    here it is,I should add thou that I'm using CCS V3.1 because the labs here have windows XP

  • Slyom,

    I have not had a chance to download your project which Titus will be better able to help with. But from your description of the problem, I might ask if you are using the #include <xyz.h> form or #include "xyz.h" ? The "" version will look in the project folder and all other include paths while the <> version will only look in the other include paths.

    Regards,
    RandyP

  • I've used the '' dsk6416.h" format. In every project I create where I have to include an H file I get this error.The files appear in documents but not the include folder.If they do appear,they're inaccesible.When I try to add them under project it says they already exist.

  • Hi Slyom,

    Your attachment doesn't have complete project, just it has ".sbl" file alone.

    Could you attach your complete project.

  • Hi Slyom,

    Again attached file just had only .bsl file.

    Please attach the complete project with source code and .cmd files etc.,

  • Slyom,

    Please send at least the three files:

    "../../../CCStudio_v3.1/examples/dsk6416/bsl/lab2/Debug.lkf"

    "Lab2.c"

    and your project file, *.pjt.

    Regards,
    RandyP

  • Hi Siyom,

    If you don't know where is the source file, then select your project file, do a right click and select 'Properties' option and see the location of the file in "Resources" option.

    http://e2e.ti.com/support/dsp/omap_applications_processors/f/42/t/369278.aspx

  • 3276.lab2.rar

    Hope I've attached it accordingly this time..I just took the entire folder

  • Hi Siyom,

    Sorry for asking the attachment again, I need "Block_Sine.c" and Lab2.c

    [Block_Sine.c] "C:\CCStudio_v3.1\C6000\cgtools\bin\cl6x" -g -fr"C:/CCStudio_v3.1/examples/dsk6416/bsl/lab2/Debug" -d"_DEBUG" -mv6400 -@"../../../CCStudio_v3.1/examples/dsk6416/bsl/lab2/Debug.lkf" "Block_Sine.c"

    [Lab2.c] "C:\CCStudio_v3.1\C6000\cgtools\bin\cl6x" -g -fr"C:/CCStudio_v3.1/examples/dsk6416/bsl/lab2/Debug" -d"_DEBUG" -mv6400 -@"../../../CCStudio_v3.1/examples/dsk6416/bsl/lab2/Debug.lkf" "Lab2.c"
    "Lab2.c", line 1: fatal error: could not open source file "dsk6416.h"
    1 fatal error detected in the compilation of "Lab2.c".
    Compilation terminated.

    Could you achieve the examples folder or "dsk6416"and attach it here.

  • Hi Siyom,

    I presume that you are using IW6000 labs.

    If not, I would like to suggest you to read the entire training and use IW6000 lab examples for C6416.

    http://processors.wiki.ti.com/index.php/TMS320C6x1x_DSP_Integration_Workshop#Workshop_Materials

    This archived IW6000 workshop has excellent training material in the Student Guide and there are lab files provided to go along with the Student Guide.

    1. I have downloaded the IW6000 examples and installed on my windows PC.
    2. I have imported the LAB2 "blocksine" examples on my CCS5.5 as a CCSv3.3 project.
    3. Then simply I process rebuild option for building the project and got success build.

    Build Log:



    **** Build of configuration Debug for project lab2c_6416 ****

    "C:\\ti\\ccsv5\\utils\\bin\\gmake" -k all
    'Building file: C:/IW6000/solutions for C64x/lab2c/lab2c.c'
    'Invoking: C6000 Compiler'
    "C:/ti/ccsv5/tools/compiler/c6000_7.4.4/bin/cl6x" -mv6400 --abi=coffabi -g --include_path="C:/ti/ccsv5/tools/compiler/c6000_7.4.4/include" --include_path="C:/ti/xdais_7_21_01_07/packages/ti/xdais" --include_path="/include" --define="_DEBUG" --quiet --display_error_number --diag_wrap=off --src_interlist --obj_directory="C:/IW6000/labs/lab2c/Debug_6416" --asm_directory="C:/IW6000/labs/lab2c/Debug_6416" --preproc_with_compile --preproc_dependency="lab2c.pp"  "C:/IW6000/solutions for C64x/lab2c/lab2c.c"
    "C:/IW6000/solutions for C64x/lab2c/lab2c.c", line 32: warning #225-D: function declared implicitly
    "C:/IW6000/solutions for C64x/lab2c/lab2c.c", line 33: warning #225-D: function declared implicitly
    "C:/IW6000/solutions for C64x/lab2c/lab2c.c", line 34: warning #225-D: function declared implicitly
    'Finished building: C:/IW6000/solutions for C64x/lab2c/lab2c.c'
    ' '
    'Building file: C:/IW6000/solutions for C64x/lab2c/sine_float.c'
    'Invoking: C6000 Compiler'
    "C:/ti/ccsv5/tools/compiler/c6000_7.4.4/bin/cl6x" -mv6400 --abi=coffabi -g --include_path="C:/ti/ccsv5/tools/compiler/c6000_7.4.4/include" --include_path="C:/ti/xdais_7_21_01_07/packages/ti/xdais" --include_path="/include" --define="_DEBUG" --quiet --display_error_number --diag_wrap=off --src_interlist --obj_directory="C:/IW6000/labs/lab2c/Debug_6416" --asm_directory="C:/IW6000/labs/lab2c/Debug_6416" --preproc_with_compile --preproc_dependency="sine_float.pp"  "C:/IW6000/solutions for C64x/lab2c/sine_float.c"
    'Finished building: C:/IW6000/solutions for C64x/lab2c/sine_float.c'
    ' '
    'Building file: C:/IW6000/solutions for C64x/lab2c/sine_integer.c'
    'Invoking: C6000 Compiler'
    "C:/ti/ccsv5/tools/compiler/c6000_7.4.4/bin/cl6x" -mv6400 --abi=coffabi -g --include_path="C:/ti/ccsv5/tools/compiler/c6000_7.4.4/include" --include_path="C:/ti/xdais_7_21_01_07/packages/ti/xdais" --include_path="/include" --define="_DEBUG" --quiet --display_error_number --diag_wrap=off --src_interlist --obj_directory="C:/IW6000/labs/lab2c/Debug_6416" --asm_directory="C:/IW6000/labs/lab2c/Debug_6416" --preproc_with_compile --preproc_dependency="sine_integer.pp"  "C:/IW6000/solutions for C64x/lab2c/sine_integer.c"
    'Finished building: C:/IW6000/solutions for C64x/lab2c/sine_integer.c'
    ' '
    'Building file: C:/IW6000/solutions for C64x/lab2c/sine_qmath.c'
    'Invoking: C6000 Compiler'
    "C:/ti/ccsv5/tools/compiler/c6000_7.4.4/bin/cl6x" -mv6400 --abi=coffabi -g --include_path="C:/ti/ccsv5/tools/compiler/c6000_7.4.4/include" --include_path="C:/ti/xdais_7_21_01_07/packages/ti/xdais" --include_path="/include" --define="_DEBUG" --quiet --display_error_number --diag_wrap=off --src_interlist --obj_directory="C:/IW6000/labs/lab2c/Debug_6416" --asm_directory="C:/IW6000/labs/lab2c/Debug_6416" --preproc_with_compile --preproc_dependency="sine_qmath.pp"  "C:/IW6000/solutions for C64x/lab2c/sine_qmath.c"
    'Finished building: C:/IW6000/solutions for C64x/lab2c/sine_qmath.c'
    ' '
    'Building target: C:/IW6000/solutions for C64x/lab2c/lab2c_6416/../Debug_6416/lab2c_6416.out'
    'Invoking: C6000 Linker'
    "C:/ti/ccsv5/tools/compiler/c6000_7.4.4/bin/cl6x" -mv6400 --abi=coffabi -g --define="_DEBUG" --quiet --display_error_number --diag_wrap=off --src_interlist --obj_directory="C:/IW6000/labs/lab2c/Debug_6416" --asm_directory="C:/IW6000/labs/lab2c/Debug_6416" -z -m"C:/IW6000/solutions for C64x/lab2c/Debug_6416/lab2c_6416.map" -i"C:/ti/ccsv5/tools/compiler/c6000_7.4.4/lib" -i"C:/ti/ccsv5/tools/compiler/c6000_7.4.4/include" -i"C:/IW6000/solutions for C64x/lab2c/lab2c_6416" -i"C:/IW6000/solutions for C64x/lab2c" -i"/lib" --reread_libs --warn_sections --display_error_number --diag_wrap=off --xml_link_info="lab2c_6416_linkInfo.xml" --rom_model -o "C:/IW6000/solutions for C64x/lab2c/lab2c_6416/../Debug_6416/lab2c_6416.out"  "C:/IW6000/labs/lab2c/Debug_6416/sine_qmath.obj" "C:/IW6000/labs/lab2c/Debug_6416/sine_integer.obj" "C:/IW6000/labs/lab2c/Debug_6416/sine_float.obj" "C:/IW6000/labs/lab2c/Debug_6416/lab2c.obj"
    warning #10210-D: creating ".stack" section with default size of 0x400; use the -stack option to change the default size
    'Finished building target: C:/IW6000/solutions for C64x/lab2c/lab2c_6416/../Debug_6416/lab2c_6416.out'
    ' '

    **** Build Finished ****