having functions of type Union

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

having functions of type Union

ソリューションへジャンプ
925件の閲覧回数
markgreggory
Contributor II

Hello,

 

With IAR I was able to typedef a variable as a union then create a function of that type variable so the return on the function would be used with the features I had in the union. CW10 is not liking this. I'm getting a "declaration syntax error". I can not find any documentation that states a function can NOT be of type Union in C and why has IAR allowed this as valid syntax and executes correctly?

 

Regards,

Mark

ラベル(1)
タグ(2)
0 件の賞賛
返信
1 解決策
821件の閲覧回数
markgreggory
Contributor II

Found the problem. I had to remove: #include <stdio.h> 

元の投稿で解決策を見る

0 件の賞賛
返信
1 返信
822件の閲覧回数
markgreggory
Contributor II

Found the problem. I had to remove: #include <stdio.h> 

0 件の賞賛
返信