Link file error?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Link file error?

1,622 Views
Falo
Contributor I
In my link file (xxxx.cmd) there is a line written like this:
OBJECT (F_EntryPoint, Cpu.c)

This line takes the function _EntryPoint in the cpu.c file and puts it exactly here in memory (Where you put the OBJECT(...) line).

When I use this link file by the command line tool "mwld56800" I get the error message that my linker can't find cpu.c, no matter where I put the file.

BUT if I change the line to: OBJECT (F_EntryPoint, Cpu.o)
And refers to the object file instead, the linker stops complaining.

Is this correct?


CodeWarrior 7.3 for DSP56F807
Linker version: 7.0 build 1051

Message Edited by Falo on 2007-03-2701:43 PM

Labels (1)
Tags (1)
0 Kudos
2 Replies

258 Views
trytohelp
NXP Employee
NXP Employee
Hi,
 
I checked on my side and it's working fine.
See attachement.
 
Pascal
 
Message Edited by t.dowe on 2009-09-04 10:37 AM
0 Kudos

258 Views
haluong
Contributor I
Dear Pascal,
I used Processor Expert to generate linker, when I compile the simplest sample in IDE and it is OK. But I used commandline , it has error is
 
Warning : Linker command file warning at line 80
           Object "F_EntryPoint" not found in file "Cpu.c"
   Alert : Link failed.
Errors caused tool to abort.
I used the linker flag:
-l"FP5800.lib" -l"MSL C 56800.Lib"  -timing -msgstyle IDE -stdlib -g    -w on -maxerrrs 5 -maxwarnings 5 -m F_EntryPoint
0 Kudos