Warning: The project has no cmd file while the Text Linker is selected
[Linking...] "C:\CCStudio_v3.3\C5500\cgtools\bin\cl55" -@"Debug.lkf"
>> warning: creating output section vectors without SECTIONS specification
>> warning: creating output section .const without SECTIONS specification
>> warning: creating output section .cio without SECTIONS specification
>> warning: creating .stack section with default size of 500 words.
Use
-stack option to change the default size.
>> warning: creating .sysstack section with default size of 500 words.
Use
-sysstack option to change the default size.
>> warning: creating .sysmem section with default size of 1000 words.
Use
-heap option to change the default size.
Build Complete,
0 Errors, 7 Warnings, 0 Remarks.
Ok, 成功,消除了所有的编译错误,但还是有一些Warning;怎么办?
呵呵,咱们接着看
4、消除编译警告
增加一个.cmd 配置文件
将C:\CCStudio_v3.3\C5500\cgtools\lib\lnk.cmd 文件拷贝到c:\test\hello\hello.cmd
同时将hello.cmd文件加入到项目工程当中即可。
----------------------------- hello.pjt - Debug -----------------------------
[hello.c] "C:\CCStudio_v3.3\C5500\cgtools\bin\cl55" -g -fr"C:/test/hello/Debug" -d"_DEBUG" -@"Debug.lkf" "hello.c"
[Linking...] "C:\CCStudio_v3.3\C5500\cgtools\bin\cl55" -@"Debug.lkf"
Build Complete,
0 Errors, 0 Warnings, 0 Remarks.
非常幸运,搞定一个基本的工程以及所有相关的编译错误和告警。
5、小结
这些文件需要做备份、保留:
hello.pjt
hello.cmd
hello.c