Linker comman file error, File not found

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Linker comman file error, File not found

1,011 次查看
dave_eft
Contributor I

Installed Products:

- CodeWarrior for MCU

Version: 10.1

Build Id:110204

Coldfire MCF52223

 

I am trying to get CW 10 to compile and link a previously working CW Classic project.  I am getting a bunch of errors like this

"Linker command file error at line XXX File not found: cf_loader.c" where XXX is a line line from in my .lcf file that comes from a section that looks like this

 

.cf_loader_rom : { // loader routines copied to ram only when needed

__CFLDR_MAIN_ROM = . - ADDR(.cf_loader_rom);

cf_loader.c(.cf_loader_main_rom)

__CFLDR_SUM_ROM = . - ADDR(.cf_loader_rom);

cf_loader.c(.cf_loader_sum_rom)

__CFLDR_WRITE_ROM = . - ADDR(.cf_loader_rom);

cf_loader.c(.cf_loader_write_rom)

__CFLDR_ERASE_ROM = . - ADDR(.cf_loader_rom);

cf_loader.c(.cf_loader_erase_rom)

__CFLDR_UINT32_IN_ROM = . - ADDR(.cf_loader_rom);

cf_loader.c(.cf_loader_uint32_in_rom)

__CFLDR_UINT32_OUT_ROM = . - ADDR(.cf_loader_rom);

cf_loader.c(.cf_loader_uint32_out_rom)

__CFLDR_INIT_PORT_ROM = . - ADDR(.cf_loader_rom);

cf_loader.c(.cf_loader_init_port_rom)

__CFLDR_IRQ_ROM = . - ADDR(.cf_loader_rom);

cf_loader.c(.cf_loader_irq_rom)

__CFLDR_GETCHAR_ROM = . - ADDR(.cf_loader_rom);

cf_loader.c(.cf_loader_getchar_rom)

__CFLDR_CHECKCHAR_ROM = . - ADDR(.cf_loader_rom);

cf_loader.c(.cf_loader_checkchar_rom)

__CFLDR_PUTCHAR_ROM = . - ADDR(.cf_loader_rom);

cf_loader.c(.cf_loader_putchar_rom)

} >> system_rom

 

Workspace path = "C:\0"

Project path = "C:\0\trailer"

Location of cf_loader.c = "C:\0\source\coldfire"

 

Where does the linker pick up the path for these files?

 

I have been trying various path settings in the project properties utiliity for two days now.  Any help would be appreciated.

标签 (1)
0 项奖励
回复
2 回复数

772 次查看
RapidDesigner
Contributor I

By any chance did you get this problem solved?  I have the same issue with a project that was imported from CW Classic.  I'm considering just starting from scratch and bringing the files in, but I was hoping to avoid that since most of the code is already tested.  Since CW Classic doesn't seem to be supported on Win 7, it forces us to move to CW 10.

0 项奖励
回复

772 次查看
CompilerGuru
NXP Employee
NXP Employee

There are other threads in the forum about this topic.

https://community.freescale.com/message/78826#78826

Basically list the name of the object file, not the C source file name.

 

Daniel

0 项奖励
回复