c++ - How do I use the wmain() entry point in Code::Blocks? -
i did fresh install of code::blocks (i installed the 1 windows 7 comes gcc compiler (codeblocks-10.05mingw-setup.exe)). tried compile simple code:
int wmain(int argc, wchar_t* argv[]) { return 0; }
i got error message:
c:\development\ide\codeblocks\mingw\bin..\lib\gcc\mingw32\4.4.1......\libmingw32.a(main.o):main.c|| undefined reference `winmain@16'| ||=== build finished: 1 errors, 0 warnings ===|
when try run code main()
entry, runs expected without errors or warnings. how can use wmain()
in code? modifications have do?
mingw not support unicode. there wrapper available if feel trying out. https://github.com/coderforlife/mingw-unicode-main
Comments
Post a Comment