From: SF/projects/mingw n. l. <min...@li...> - 2012-10-22 18:10:59
|
Bugs item #3158680, was opened at 2011-01-14 18:04 Message generated for change (Comment added) made by earnie You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=102435&aid=3158680&group_id=2435 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: MinGW >Group: Feature in WSL 4.0 >Status: Closed >Resolution: Duplicate Priority: 5 Private: No Submitted By: Jonas (jonasno) Assigned to: Nobody/Anonymous (nobody) Summary: _UNICODE vs UNICODE strange effects Initial Comment: Both g++ and gcc fails when using -D_UNICODE with error H:\gcc_test>g++ -o test.exe test.cpp -mwindows -mconsole -D_UNICODE h:/mingw/bin/../lib/gcc/mingw32/4.5.0/../../../libmingw32.a(main.o):main.c:(.text+0xd2): undefined reference to `WinMain@16' collect2: ld returned 1 exit status but changing -D_UNICODE to -DUNICODE fixes the problem. compiling with both -D_UNICODE and -DUNICODE also fails See attachment for example code When searching i found this which seems to be the same bug https://sourceforge.net/tracker/index.php?func=detail&aid=1201239&group_id=2435&atid=102435 but you devs seem to have missed that bug so i report it again in hope that you will notice it this time i have seem to have latest mingw version downloaded with mingw-get g++ (GCC) 4.5.0 gcc (GCC) 4.5.0 ---------------------------------------------------------------------- >Comment By: Earnie Boyd (earnie) Date: 2012-10-22 11:10 Message: Microsoft is crazy. The UNICODE filters have been reworked in WSL 4.0. It has always been expected that you define UNICODE in user space and not _UNICODE which was reserved for MS use. ---------------------------------------------------------------------- Comment By: Jonas (jonasno) Date: 2011-01-15 16:58 Message: The more i use mingw the more i notice the many problems with unicode in mingw. ex. in vs2010 using "_tmain" it will add code before the main func that will convert the args to _TCHAR but that doesn't happen when using mingw. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=102435&aid=3158680&group_id=2435 |