compiler setting (callee not defined, compiler no error)

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

compiler setting (callee not defined, compiler no error)

跳至解决方案
1,042 次查看
leslieyang0509
Contributor II

Codewarrior 10.3

 

When caller call a callee, the callee was not defined, the compiler result does not generate error.

How to change compiler setting to when callee was not defined, the compiler will generate error.

 

 

Example:

int main()

{

 

  foo();

}

 

the compiler will not generate error message.

 

 

 

Leslie

标签 (1)
标记 (3)
0 项奖励
回复
1 解答
805 次查看
CrasyCat
Specialist III

Hello

  Go to the ARM Compiler > Language page and check the Require Function Prototypes edit box.

CrasyCat

在原帖中查看解决方案

0 项奖励
回复
4 回复数
805 次查看
CrasyCat
Specialist III

Hello

Which MCU are you targeting (HCS08, ColdFire, Kinetis, ...)?

CrasyCat

0 项奖励
回复
805 次查看
leslieyang0509
Contributor II

Dear Catherine,

NK60DN512

100MHz

mask 2N22D

Here is the snapshot of settings.

Setting.jpg

Leslie

0 项奖励
回复
806 次查看
CrasyCat
Specialist III

Hello

  Go to the ARM Compiler > Language page and check the Require Function Prototypes edit box.

CrasyCat

0 项奖励
回复
805 次查看
leslieyang0509
Contributor II

Dear Catherine,

it works!

Thank you.

Leslie

0 项奖励
回复