Warnings - L1823

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

Warnings - L1823

跳至解决方案
2,744 次查看
Taig
Contributor I

 hi!

 

 I have some problem.

 

 I use freescale CodeWarrior IDE version 5.9.0

 

This is my problem.

 

 

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

L1823: External object l_keyin in F:\My_Program\Freescale_test\Taillamp\TailLamp05\TailLamp05_Data\Standard\ObjectCode\input.c.o
created by default


L1823: External object l_drvdoor in F:\My_Program\Freescale_test\Taillamp\TailLamp05\TailLamp05_Data\Standard\ObjectCode\input.c.o
created by default


L1823: External object l_tailsw in F:\My_Program\Freescale_test\Taillamp\TailLamp05\TailLamp05_Data\Standard\ObjectCode\input.c.o
created by default


L1823: External object o_taillamp in F:\My_Program\Freescale_test\Taillamp\TailLamp05\TailLamp05_Data\Standard\ObjectCode\main.c.o
created by default


L1823: External object b_autocut in F:\My_Program\Freescale_test\Taillamp\TailLamp05\TailLamp05_Data\Standard\ObjectCode\main.c.o
created by default

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
 

I'd appreciate any help

regards Taig

标签 (1)
标记 (1)
0 项奖励
回复
1 解答
1,558 次查看
BlackNight
NXP Employee
NXP Employee

it means that you have referenced/used variables, but not defined them.

E.g.  in input.c, you use a variable 'l_keyin' which has no allocated memory.

so you need to add somewhere something like

char l_keyin;

(you might need to use another type instead of char).

 

The linker detects this, and creates a default object for you. But really you should have defined that object in your code.

 

BK

在原帖中查看解决方案

0 项奖励
回复
2 回复数
1,559 次查看
BlackNight
NXP Employee
NXP Employee

it means that you have referenced/used variables, but not defined them.

E.g.  in input.c, you use a variable 'l_keyin' which has no allocated memory.

so you need to add somewhere something like

char l_keyin;

(you might need to use another type instead of char).

 

The linker detects this, and creates a default object for you. But really you should have defined that object in your code.

 

BK

0 项奖励
回复
1,557 次查看
Taig
Contributor I

Hi. BK

 

Thank you for your answer.

 

I solved this problem because of your answer.

 

Thanks.

0 项奖励
回复