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.

#10010 errors encountered during linking; "LED.out" not built 和 #10234-D unresolved symbols remain

Other Parts Discussed in Thread: TMS320C6748

你好,我用得是TMS320C6748 DSP Development KIT, 用CCS5.4编程。用得是TI给的例子,也就是在C6748_StarterWare_1_20_03_03文件里的demoLedIf。

程序如下:

#include "gpio.h"

#include "soc_C6748.h"

#include "hw_psc_C6748.h"

 #include "lcdkC6748.h"

 #include "demoCfg.h"

static unsigned int ledState = 0;

void LedIfConfig(void)

{GPIOBank6Pin12PinMuxSetup();

GPIODirModeSet(SOC_GPIO_0_REGS, 109, GPIO_DIR_OUTPUT);}

void LedToggle(void)

 {    

 if(ledState == 0) ledState = 1;    

 else ledState = 0;  

GPIOPinWrite(SOC_GPIO_0_REGS, 109, ledState); }

void LedOff(void)

 {  GPIOPinWrite(SOC_GPIO_0_REGS, 109, GPIO_PIN_HIGH); }

 编译的时候就会出现

#10010 errors encountered during linking; "LED.out" not built 和 #10234-D unresolved symbols remain

 

**** Build of configuration Debug for project LED ****

"C:\\ti\\ccsv5\\utils\\bin\\gmake" -k all 'Building file: ../main.c' 'Invoking: C6000 Compiler' "C:/ti/ccsv5/tools/compiler/c6000_7.4.2/bin/cl6x" -mv6740 --abi=coffabi -g --include_path="C:/ti/ccsv5/tools/compiler/c6000_7.4.2/include" --define=c6748 --display_error_number --diag_warning=225 --diag_wrap=off --preproc_with_compile --preproc_dependency="main.pp"  "../main.c" 'Finished building: ../main.c' ' ' 'Building target: LED.out' 'Invoking: C6000 Linker' "C:/ti/ccsv5/tools/compiler/c6000_7.4.2/bin/cl6x" -mv6740 --abi=coffabi -g --define=c6748 --display_error_number --diag_warning=225 --diag_wrap=off -z --stack_size=0x800 -m"LED.map" --heap_size=0x800 -i"C:/ti/ccsv5/tools/compiler/c6000_7.4.2/lib" -i"C:/ti/ccsv5/tools/compiler/c6000_7.4.2/include" --reread_libs --warn_sections --display_error_number --diag_wrap=off --xml_link_info="LED_linkInfo.xml" --rom_model -o "LED.out"  "./main.obj" -l"libc.a" "../C6748.cmd" <Linking>

 undefined first referenced                                                       symbol       in file                                                           --------- ----------------                                                      _main     C:\ti\ccsv5\tools\compiler\c6000_7.4.2\lib\rts6740.lib<args_main.obj>

error #10234-D: unresolved symbols remain >> Compilation failure error #10010: errors encountered during linking; "LED.out" not built gmake: *** [LED.out] Error 1 gmake: Target `all' not remade because of errors.

**** Build Finished ****

请问这是什么问题呢?谢谢