Can we use wmain() functions with Unix compilers or it'll work only on windows?
问题 Can we use wmain() functions with Unix compilers or it'll work only on\for windows? 回答1: The only standard signatures for main are: int main(void); int main(int argc, char *argv[]); 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. 回答2: The wmain signature exists in Windows to handle wide-character command line arguments