From: Benjamin R. <ru...@ar...> - 2011-07-27 10:14:40
|
Hi everybody ! I use SWIG to wrap a library from C++ to Java with linux. It works, but when I want to do it with Windows, I have an error : c:/mingw/bin/../lib/gcc/mingw32/4.5.2/../../../libmingw32.a(main.o):main.c:(.text+0xd2): undefined reference to `WinMain@16'. Should I modify the source code of the C++ library and put a WinMain? I use MinGw compiler and my OS is Windows Xp Maybe some of you know this problem and can help me. Thanks for your answers Benjamin JEANTY-RUARD |