编译ccs时pp文件找不到|ccs工程的头文件找不到怎么回事

|

1. ccs工程的头文件找不到,怎么回事

1、要在Memory Section Manager属性中为“Segment For DSP/BIOS Objects” 和 “Segment For malloc()/free()”分配Dynamic Memory Heaps,必须首先在要分配的段(比如,IRAM)中勾选“create a heap in this memory“,并给出heaps size。2、要把*.tcf文件生成的*.cmd文件手动加入工程中,否则编译报错如下:—————————— test.pjt – Debug ——————————Warning: The project has no cmd file while the Text Linker is selected[Linking…] "D:\CCStudio_v3.3\C6000\cgtools\bin\cl6x" -@"Debug.lkf"<Linking>>> warning: creating output section .gblinit without SECTIONS specification>> warning: creating output section .mem without SECTIONS specification>> warning: creating output section .rtdx_data without SECTIONS specification>> warning: creating output section .sys without SECTIONS specification>> warning: creating output section .clk without SECTIONS specification>> warning: creating output section .hst1 without SECTIONS specification>> warning: creating output section .hst without SECTIONS specification>> warning: creating output section .pip without SECTIONS specification>> warning: creating output section .hst0 without SECTIONS specification>> warning: creating output section .hwi_vec without SECTIONS specification>> warning: creating output section .swi without SECTIONS specification>> warning: creating output section .printf without SECTIONS specification>> warning: creating output section .sts without SECTIONS specification>> warning: creating output section .tsk without SECTIONS specification>> warning: creating output section .TSK_idle$stk without SECTIONS specification>> warning: creating output section .idlcal without SECTIONS specification>> warning: creating output section .idl without SECTIONS specification>> warning: creating output section .LOG_system$buf without SECTIONS specification>> warning: creating output section .log without SECTIONS specification>> warning: creating output section .sysinit without SECTIONS specification>> warning: creating output section .vers without SECTIONS specification>> warning: entry point symbol _c_int00 undefinedundefined first referenced symbol in file——— —————-SWI_D_rdytab d:\\CCStudio_v3.3\\myprojects\\test\\Debug\\testcfg.objIRAM$B d:\\CCStudio_v3.3\\myprojects\\test\\Debug\\testcfg.obj_EXC_init d:\\CCStudio_v3.3\\myprojects\\test\\Debug\\testcfg.obj_GBL_procId d:\\CCStudio_v3.3\\myprojects\\test\\Debug\\testcfg.obj__HOOK_knlId d:\\CCStudio_v3.3\\myprojects\\test\\Debug\\testcfg.obj_KNL_exit d:\\CCStudio_v3.3\\myprojects\\test\\Debug\\testcfg.objIRAM$L d:\\CCStudio_v3.3\\myprojects\\test\\Debug\\testcfg.objTSK_VCREATEFXN d:\\CCStudio_v3.3\\myprojects\\test\\Debug\\testcfg.obj_UTL_doError d:\\CCStudio_v3.3\\myprojects\\test\\Debug\\testcfg.objPIP_F_start d:\\CCStudio_v3.3\\myprojects\\test\\Debug\\testcfg.objGBL_boot d:\\CCStudio_v3.3\\myprojects\\test\\Debug\\testcfg.objTSK_VDELETEFXN d:\\CCStudio_v3.3\\myprojects\\test\\Debug\\testcfg.objKNL_glue d:\\CCStudio_v3.3\\myprojects\\test\\Debug\\testcfg.obj_UTL_doAbort d:\\CCStudio_v3.3\\myprojects\\test\\Debug\\testcfg.objIDL_F_loop d:\\CCStudio_v3.3\\myprojects\\test\\Debug\\testcfg.obj_CLK_DFLTMICROSECS d:\\CCStudio_v3.3\\myprojects\\test\\Debug\\testcfg.obj_GBL_cacheInit64P d:\\CCStudio_v3.3\\myprojects\\test\\Debug\\testcfg.obj_EXC_dispatch d:\\CCStudio_v3.3\\myprojects\\test\\Debug\\testcfg.obj_CLK_htimePerLtime d:\\CCStudio_v3.3\\myprojects\\test\\Debug\\testcfg.objGBL_stackbeg d:\\CCStudio_v3.3\\myprojects\\test\\Debug\\testcfg.obj_CLK_D_tddr d:\\CCStudio_v3.3\\myprojects\\test\\Debug\\testcfg.obj_UTL_doPutc d:\\CCStudio_v3.3\\myprojects\\test\\Debug\\testcfg.obj_MEM d:\\CCStudio_v3.3\\myprojects\\test\\Debug\\testcfg.objPRD_F_tick d:\\CCStudio_v3.3\\myprojects\\test\\Debug\\testcfg.obj__HOOK_NUMHOOKS d:\\CCStudio_v3.3\\myprojects\\test\\Debug\\testcfg.obj_CLK_D_microseconds d:\\CCStudio_v3.3\\myprojects\\test\\Debug\\testcfg.objRTA_F_or d:\\CCStudio_v3.3\\myprojects\\test\\Debug\\testcfg.objTRC_R_mask d:\\CCStudio_v3.3\\myprojects\\test\\Debug\\testcfg.objGBL_stackend d:\\CCStudio_v3.3\\myprojects\\test\\Debug\\testcfg.obj_c_int00 d:\\CCStudio_v3.3\\myprojects\\test\\Debug\\testcfg.obj_TSK_config d:\\CCStudio_v3.3\\myprojects\\test\\Debug\\testcfg.obj_OBJ_table d:\\CCStudio_v3.3\\myprojects\\test\\Debug\\testcfg.objHWI_A_VECS d:\\CCStudio_v3.3\\myprojects\\test\\Debug\\testcfg.obj_FXN_F_nop d:\\CCStudio_v3.3\\myprojects\\test\\Debug\\testcfg.obj_CLK_enableTimer d:\\CCStudio_v3.3\\myprojects\\test\\Debug\\testcfg.obj_CLK_D_prd d:\\CCStudio_v3.3\\myprojects\\test\\Debug\\testcfg.objIDL_D_calibrate d:\\CCStudio_v3.3\\myprojects\\test\\Debug\\testcfg.obj_TSK d:\\CCStudio_v3.3\\myprojects\\test\\Debug\\testcfg.obj_KNL_run d:\\CCStudio_v3.3\\myprojects\\test\\Debug\\testcfg.objLNK_dspFrameRequestMask d:\\CCStudio_v3.3\\myprojects\\test\\Debug\\testcfg.objCLK_F_isr d:\\CCStudio_v3.3\\myprojects\\test\\Debug\\testcfg.objPIP_D_tabbeg d:\\CCStudio_v3.3\\myprojects\\test\\Debug\\testcfg.objTRC_cinit d:\\CCStudio_v3.3\\myprojects\\test\\Debug\\testcfg.obj_UTL_halt d:\\CCStudio_v3.3\\myprojects\\test\\Debug\\testcfg.obj_MEM_init d:\\CCStudio_v3.3\\myprojects\\test\\Debug\\testcfg.objRTA_F_dispatch d:\\CCStudio_v3.3\\myprojects\\test\\Debug\\testcfg.obj_TSK_startup d:\\CCStudio_v3.3\\myprojects\\test\\Debug\\testcfg.obj_TSK_setup d:\\CCStudio_v3.3\\myprojects\\test\\Debug\\testcfg.obj_KNL_queues d:\\CCStudio_v3.3\\myprojects\\test\\Debug\\testcfg.objCLK_A_TABBEG d:\\CCStudio_v3.3\\myprojects\\test\\Debug\\testcfg.objLNK_F_dataPump d:\\CCStudio_v3.3\\myprojects\\test\\Debug\\testcfg.objTSK_VEXITFXN d:\\CCStudio_v3.3\\myprojects\\test\\Debug\\testcfg.objHWI_F_dispatch d:\\CCStudio_v3.3\\myprojects\\test\\Debug\\testcfg.obj_RTDX_Poll d:\\CCStudio_v3.3\\myprojects\\test\\Debug\\testcfg.obj_TSK_init d:\\CCStudio_v3.3\\myprojects\\test\\Debug\\testcfg.objIDL_D_busyObj d:\\CCStudio_v3.3\\myprojects\\test\\Debug\\testcfg.obj_TSK_exit d:\\CCStudio_v3.3\\myprojects\\test\\Debug\\testcfg.objSWI_F_enable d:\\CCStudio_v3.3\\myprojects\\test\\Debug\\testcfg.objFXN_F_run d:\\CCStudio_v3.3\\myprojects\\test\\Debug\\testcfg.obj_GBL_getVersion d:\\CCStudio_v3.3\\myprojects\\test\\Debug\\testcfg.obj_CLK_inputClock d:\\CCStudio_v3.3\\myprojects\\test\\Debug\\testcfg.objGBL_initdone d:\\CCStudio_v3.3\\myprojects\\test\\Debug\\testcfg.obj_HWI_dispatchTab d:\\CCStudio_v3.3\\myprojects\\test\\Debug\\testcfg.objLNK_dspFrameReadyMask d:\\CCStudio_v3.3\\myprojects\\test\\Debug\\testcfg.objIDL_F_busy d:\\CCStudio_v3.3\\myprojects\\test\\Debug\\testcfg.obj>> error: symbol referencing errors – './Debug/test.out' not built>> Compilation failureBuild Complete, 2 Errors, 23 Warnings, 0 Remarks.3、[main.c] "D:\CCStudio_v3.3\C6000\cgtools\bin\cl6x" -g -pdsw225 -fr"D:/CCStudio_v3.3/MyProjects/test/Debug" -d"_DEBUG" -me -mv6400+ -@"Debug.lkf" "main.c""main.c", line 20: warning: function declared implicitly[Linking…] "D:\CCStudio_v3.3\C6000\cgtools\bin\cl6x" -@"Debug.lkf"<Linking>Build Complete, 0 Errors, 1 Warnings, 0 Remarks.warning 的原因是对应行的元素没有声明。解决办法就是加入声明。举例如下:#include <std.h>#include <string.h>//#include <stdio.h> //打开该句就可以了void main(void){ unsigned int i; unsigned int sum=0;for(i = 0; i<=100; i++ ) { sum += i; } printf("the sum = %d .\n",sum); printf("the program run over!\n");printf("the program run over!\n");

2. CCS3.3编译提示cmd中提示找不到*.OBJ文件,可是debug里面明明有obj文件啊

error: system error, can't open file '/.obj' for input: No such file or directory对应解复决办法:1要在cmd文件中制的vectors.obj前面添加-x.\Debug\代码才可以正常运行。 2要进行Project→Build options —basic—Auto mod —-No auto即可

3. 为什么我的CCS3.3软件安装时出现找不到源文件,忽略这项安装后写程序编译提示出错

设置路径 project=>build options => compiler下的preprocesser,有个include search path,就可以设定头文件了,ok

4. 错误:CCS在链接时出现lib文件找不到

而是楼书的库有复问题,“制member 'csl.obj' has incompatible byte ordering”,估计是大端小端的问题,可能是该库在编译的时候所选用的便宜参数和你的project环境不同,建议楼主重新编译该该库,然后替换原来的。

5. ccs6编译工程和文件时总出现这个,怎么办啊,急

低版本是无法兼容高版本的文件的,只能升级cssv6,下载后,然后在项目右键 properties中选到general,选complier version 旁边的more就可以选你安装。利用CCSv5导入之前版本工程(*.pjt)的方法其实很简单,使用File-Import只不过是不要选版择(General)Existing Projects into Workspace,那里会提示“Some projects cannot be imported because they already exist in the workspace”,而是要在Import的时候选择(Code Composer Studio)Legacy CCSv3.3 Projects进入后直接选择相应的*.pjt文件之后没有特殊要求就权一路Next直到Finish就好啦。导入后Build应该没问题。至于Debug的需求,还是需要新建Target Configuration File,按需要选择仿真器,就可以了。


赞 (0)