wchar.h and MQX IO incompatibility

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

wchar.h and MQX IO incompatibility

ソリューションへジャンプ
1,484件の閲覧回数
jessg_
Contributor II

Hi all,

Working with uVision IDE, I want to use the standard library "wchar.h" provided by Keil because I need functions to process wide character strings in my project.

I can not include "wchar.h" and MQX file "fio.h" in the same project because it causes compiler errors like this:

In "fio.h", it has been defined:

typedef MQX_FILE FILE

But in "wchar.h":

      typedef struct __FILE FILE

Both "fio.h" and "wchar.h" are necessary... I know I could edit "wchar.h" file, but I am not sure of modifying standard libraries is the best way...

So, any ideas? What would you do if you were me?

タグ(4)
0 件の賞賛
返信
1 解決策
1,152件の閲覧回数
c0170
Senior Contributor III

Hello Jesicca Garcia,

I believe there are more errors which you have not included in your post. There might be a way, if possible to disable "features" which MQX redeclare, like FILE redeclaration : Use macro __ARM_WCHAR_NO_IO to disable FILE redeclaration and I/O function prototypes.

Regards,

MartinK

元の投稿で解決策を見る

0 件の賞賛
返信
1 返信
1,153件の閲覧回数
c0170
Senior Contributor III

Hello Jesicca Garcia,

I believe there are more errors which you have not included in your post. There might be a way, if possible to disable "features" which MQX redeclare, like FILE redeclaration : Use macro __ARM_WCHAR_NO_IO to disable FILE redeclaration and I/O function prototypes.

Regards,

MartinK

0 件の賞賛
返信