From: SourceForge.net <no...@so...> - 2008-12-16 22:41:19
|
Bugs item #2435251, was opened at 2008-12-16 21:33 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=102435&aid=2435251&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: gcc Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: d2walter (d2walter) Assigned to: Nobody/Anonymous (nobody) Summary: creating shared dlls yields undefined reference to `WinMain@ Initial Comment: Whenever I add an object file that was generated with gcj to a g++ link command for a shared dll, I get an undefined reference to `WinMain@16'. I am not sure why this is required for a dll. I tried posting questions about this to the GCJ list first, and they gave me some suggestions about things to try to get more information for diagnosing this. The error below indicates that this main.o is linked in - this happens whenever java.lang.Object (or probably anthing else) is used from the libgcj.a library. c:/documents and settings/dan/my documents/programs/cygwin/home/dan/ming/bin/../ lib/gcc/mingw32/4.3.0/../../../libmingw32.a(main.o):main.c:(.text+0xbd): undefin ed reference to `WinMain@16' ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=102435&aid=2435251&group_id=2435 |