Sei sulla pagina 1di 3

CCS3.3: error: symbol referencing errors - '. / Debug / *.

Out' not built


Tag: c, the linker, compiler, CCS, output Category: C Author: c_w_2000 Date: 201
2-08-20
Reprint: CCS V3.3 development environment Step by step
The CCS v3.3 Development Environment Step by Step (1)
Step 1: Create a project, add a c file to eliminate all compile, link errors and
warnings.
1, create a project:
Through the menu: Project> New Project Creation dialog box, type:
Project Name: hello
Location: C: \ test \ hello \
Project Type: Executable (out)
Target: TMS320C55XX
Click Finish to complete the project creation.
At this time two basic file in the C: \ test \ hello \ directory:
hello.pjt - project file
hello.sbl
hello.pjt contents of the file are as follows:
; Code Composer Project File, Version 2.0 (do not modify or remove this line)
= "File header for CCS to identify file version information, be careful not modi
fied by hand! ! !
[Project Settings] = "Project Information
ProjectDir = "C: \ test \ hello \" = "point to the project file absolute path. R
elative path in the project file is based on the path and then
ProjectType = Executable = "type of project, the project is used to generate an
executable file or library file
CPUFamily = TMS320C55XX = "CPU family
Tool = "Compiler"
Tool = "CustomBuilder"
Tool = "DspBiosBuilder"
Tool = "Linker"
Config = "Debug"
Config = "Release"
["Compiler" Settings: "Debug"] = "compiler option
Options =-g-fr "$ (Proj_dir) \ Debug"-d "_DEBUG"
["Compiler" Settings: "Release"]
Options =-o2-fr "$ (Proj_dir) \ Release"
["Linker" Settings: "Debug"] = "linker option
Options =-c-m ". \ Debug \ hello.map"-o ". \ Debug \ hello.out"-w-x
["Linker" Settings: "Release"]
Options =-c-m ". \ Release \ hello.map"-o ". \ Release \ hello.out"-w-x
2, increase the file
The right mouse button, click on the "Add Files to Project ...", add a hello.c f
ile to the project
The hello.c file contents are as follows:
# Include <stdio.h>
void main (void)
{
printf ("Hello word! \ n");

}
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_

Potrebbero piacerti anche