我们可以使用wmain()函数与Unix编译器或者它会仅在Windows上工作? [英] Can we use wmain() functions with Unix compilers or it'll work only on windows?

查看:171
本文介绍了我们可以使用wmain()函数与Unix编译器或者它会仅在Windows上工作?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们可以使用wmain()函数与Unix编译器或者它会在\\只对窗口?

Can we use wmain() functions with Unix compilers or it'll work only on\for windows?

推荐答案

的唯一标准签名是:

int main(void);
int main(int argc, char *argv[]);

然而,一个独立的实现可以提供扩展/允许其他签名。但是,这些并不存在保证可移植。 wmain 看起来像一个Windows / VS事情。没有太多的机会,这将在* nix / GNU GCC工作。

However, a freestanding implementation can provide extensions/allow other signatures. But those are not guranteed to be portable. wmain looks like a Windows/VS thing. There's not much chance this will work on a *nix/GNU GCC.

这篇关于我们可以使用wmain()函数与Unix编译器或者它会仅在Windows上工作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆