error C1406

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

error C1406

724 Views
seanbrooks
Contributor I

hi everyone, am I missing something but I am getting an error:C1406

when using in a header file

typedef short myname; 

is saying that is a illegal use of identifierList

I have used it before with stm32 but I would like to use a mc9s08

0 Kudos
1 Reply

542 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

Hi Sean,

Please see below description of C1406. I extracted them from help manual.

========================================================

Freescale HC08 Compiler Messages: C1406: Illegal use of identifierList

Description

A function prototype declaration had formal parameter names, but no types were provided for the parameters.

Example

int f(i);  // error

Tips

Declare the types for the parameters.

==========================================================

I also made a video of how to correct it, please see attached.


Have a great day,
Jennie Zhang

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos