error C1406

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

error C1406

1,303件の閲覧回数
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 件の賞賛
返信
1 返信

1,121件の閲覧回数
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 件の賞賛
返信