compiler setting (callee not defined, compiler no error)

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

compiler setting (callee not defined, compiler no error)

Jump to solution
708 Views
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

Labels (1)
Tags (3)
0 Kudos
1 Solution
471 Views
CrasyCat
Specialist III

Hello

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

CrasyCat

View solution in original post

0 Kudos
4 Replies
471 Views
CrasyCat
Specialist III

Hello

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

CrasyCat

0 Kudos
471 Views
leslieyang0509
Contributor II

Dear Catherine,

NK60DN512

100MHz

mask 2N22D

Here is the snapshot of settings.

Setting.jpg

Leslie

0 Kudos
472 Views
CrasyCat
Specialist III

Hello

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

CrasyCat

0 Kudos
471 Views
leslieyang0509
Contributor II

Dear Catherine,

it works!

Thank you.

Leslie

0 Kudos