compiler setting (callee not defined, compiler no error)

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

compiler setting (callee not defined, compiler no error)

ソリューションへジャンプ
723件の閲覧回数
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 解決策
486件の閲覧回数
CrasyCat
Specialist III

Hello

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

CrasyCat

元の投稿で解決策を見る

0 件の賞賛
4 返答(返信)
486件の閲覧回数
CrasyCat
Specialist III

Hello

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

CrasyCat

0 件の賞賛
486件の閲覧回数
leslieyang0509
Contributor II

Dear Catherine,

NK60DN512

100MHz

mask 2N22D

Here is the snapshot of settings.

Setting.jpg

Leslie

0 件の賞賛
487件の閲覧回数
CrasyCat
Specialist III

Hello

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

CrasyCat

0 件の賞賛
486件の閲覧回数
leslieyang0509
Contributor II

Dear Catherine,

it works!

Thank you.

Leslie

0 件の賞賛