我们可以将wmain()与Unix编译器一起使用还是只能在Windows上使用? [英] Can we use wmain() with Unix compilers or it'll work only on Windows?
本文介绍了我们可以将wmain()与Unix编译器一起使用还是只能在Windows上使用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我们可以将 wmain()
函数与Unix编译器一起使用还是只能在Windows上使用?
Can we use the wmain()
function with Unix compilers or it'll work only on/for Windows?
推荐答案
main
的唯一标准签名是:
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屋!
查看全文