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.

undefined first referenced symbol in file出现问题

Other Parts Discussed in Thread: CCSTUDIO

undefined first referenced
symbol in file
--------- ----------------
_TIBootSetup E:\\to1017\\to1017\\DSP_Pro_LV\\Debug\\Boot.obj
_TIBOOT_SEC_SIZE E:\\to1017\\to1017\\DSP_Pro_LV\\Debug\\Boot.obj
>> error: symbol referencing errors - './Debug/example.out' not built

>> Compilation failure

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

  • 从报错信息看,_TIBootSetup _TIBOOT_SEC_SIZE没有定义,你看一下代码中有没有定义?

  • "TISecondaryBoot.c", line 66: fatal error: could not open source file "TISecondaryBoot.h"
    1 fatal error detected in the compilation of "TISecondaryBoot.c".
    Compilation terminated.

    >> Compilation failure

    搜索路径:Project—>Build 
    Options——>Compiler——>Processer——>Include search 
    path添加过路径了,错误反而变多了

  • 我是需要二级引导启动FLASH,用到了TISecondaryBoot这个文件,这也是你们之前提供给我的文件

  • s y 说:

    "TISecondaryBoot.c", line 66: fatal error: could not open source file "TISecondaryBoot.h"
    1 fatal error detected in the compilation of "TISecondaryBoot.c".
    Compilation terminated.

    >> Compilation failure

    搜索路径:Project—>Build 
    Options——>Compiler——>Processer——>Include search 
    path添加过路径了,错误反而变多了

    代码里include时的路径和Build Opitons里的路径不要重复。

  • "TISecondaryBoot.c", line 66: fatal error: could not open source file "TISecondaryBoot.h"
    1 fatal error detected in the compilation of "TISecondaryBoot.c".
    Compilation terminated.

    >> Compilation failure

    [vect.asm] "D:\CCStudio_v3.3\C6000\cgtools\bin\cl6x" -g -fr"E:/to1017/to1017/DSP_Pro_LV/Debug" -i"E:/to1017/to1017" -d"_DEBUG" -mv6700 -@"Debug.lkf" "vect.asm"

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

    还是出现这个问题,是哪里造成的?我用的是CCS3.3版本