IDE does not recognize my system as window

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

IDE does not recognize my system as window

ソリューションへジャンプ
1,528件の閲覧回数
VolcanicCheese
Contributor III

When using this code,

#if (defined _WIN32_ || defined _WIN64 || defined _WINDLL )

The IDE would not recognize my system is Window. I was looking online and I was not able to find answers on it. Thank you!

0 件の賞賛
返信
1 解決策
1,524件の閲覧回数
ErichStyger
Specialist I

Hi @VolcanicCheese 

Well, I think this is not about the IDE, but about the compiler.

Such macros are used to detect if you are building for Windows. But as MCUXpresso is for NXP devices and for ARM Cortex, you are not building for Windows, so these defines are not activated.

If you want to develop applications for running on Windows, you need another compiler/tool.

I hope this helps,

Erich

元の投稿で解決策を見る

2 返答(返信)
1,525件の閲覧回数
ErichStyger
Specialist I

Hi @VolcanicCheese 

Well, I think this is not about the IDE, but about the compiler.

Such macros are used to detect if you are building for Windows. But as MCUXpresso is for NXP devices and for ARM Cortex, you are not building for Windows, so these defines are not activated.

If you want to develop applications for running on Windows, you need another compiler/tool.

I hope this helps,

Erich

1,497件の閲覧回数
VolcanicCheese
Contributor III

Thank you that make sense.

0 件の賞賛
返信