IDE does not recognize my system as window

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

IDE does not recognize my system as window

跳至解决方案
1,517 次查看
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,513 次查看
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,514 次查看
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,486 次查看
VolcanicCheese
Contributor III

Thank you that make sense.

0 项奖励
回复