Hi,

I have returned to using GCC 4.5.0 for my x86_64-w64-mingw32 multilib
target.  I tried using the -municode option with my build and get the
following error:

] /usr/local/gcc/x86_64-windows-gcc/bin/x86_64-windows-g++ -municode
-o hello.exe hello_win_unicode.c
/usr/local/gcc/x86_64-windows-gcc/lib/gcc/x86_64-w64-mingw32/4.5.0/../../../../x86_64-w64-mingw32/lib/libmingw32.a(lib64_libmingw32_a-crt0_w.o):
In function `wmain':
/work/software/build/x86_64-windows/crt/../../mingw-w64/mingw-w64-v1.0-20100604/mingw-w64-crt/crt/crt0_w.c:23:
undefined reference to `_wWinMain'
collect2: ld returned 1 exit status

The program itself is very simple:
--
#include <stdio.h>

int wmain (int argc, wchar_t *argv[])
{
  wprintf(L"Hello\n");
  return 0;
}
--

When I use gcc instead of g++ it links with no problems.  Any ideas?

Thanks!
Paarvai

------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to