Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
}
3, compile, modify the error
The compiler error message is as follows (these can also be directly obtained fr
om the file cc_build_Debug.log):
----------------------------- 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 "
Warning: The project has no cmd file while the Text Linker is selected
[Linking ...] "C: \ CCStudio_v3.3 \ C5500 \ cgtools \ bin \ cl55" - @ "Debug.lkf
"
<Linking>
>> Warning: creating output section. Const without SECTIONS specification
>> Warning: entry point symbol _c_int00 undefined
undefined first referenced
symbol in file
------------------------_printf C: \ \ test \ \ hello \ \ Debug \ \ hello.obj
>> Error: symbol referencing errors - '. / Debug / hello.out' not built
>> Compilation failure
Build complete,
2 Errors, 4 Warnings, 0 Remarks.
This is not due to the specific choice of the RTS library files for the project
specified; two methods can be used to correct,
Program, directly to the required library files added to the project, such as: t
he right mouse button, click on "Add Files to Project ...", selected: C: \ CCStu
dio_v3.3 \ C5500 \ cgtools \ lib \ rts2800.lib ;
Program, modify the linker can link parameters; such as: the right mouse button,
click on the "Build Options ...", selected Linker Tab, Category selected Librar
ies, the settings Inc.. Libraries (-l): rts2800.lib;
In general, the program two recommended use, easy to project files, move, copy,
many people developed using special group!
Recompile with the following results:
----------------------------- 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 "
Warning: The project has no cmd file while the Text Linker is selected
[Linking ...] "C: \ CCStudio_v3.3 \ C5500 \ cgtools \ bin \ cl55" - @ "Debug.lkf
"
<Linking>
>> 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, successfully, to eliminate all compile errors, but there are still a number
of Warning; What should I do?
Oh, we went to see
4, eliminate compiler warnings
Add a cmd configuration files to C: \ CCStudio_v3.3 \ C5500 \ cgtools \ lib \ ln
k.cmd-file copy to c: \ test \ hello \ hello.cmd
At the same time the hello.cmd file which can be added to the project.
----------------------------- 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
"
<Linking>
Build complete,
0 Errors, 0 Warnings, 0 Remarks.
Very lucky to get a basic engineering, as well as all relevant compilation error
and alarm.
Summing these files need to do backup, reserved:
hello.pjt
hello.cmd
hello.c
Another temporary files:
hello.sbl => dynamically generated binary project
Debug.lkf => linker option parameters
cc_build_Debug.log => Log files compiled and linked temporary directory:
Debug => generated output files and temporary Object file.
hello.CS_