This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: gcj exception compiling


On 2011-11-07 03:05:48 +0100, Yaakov (Cygwin/X) said:

On Sun, 2011-11-06 at 21:16 +0100, Philipp Kraus wrote:
If I try to compile a java code with "gcj mysource.java" I get the error:

/usr/lib/gcc/i686-pc-cygwin/4.5.3/../../../libcygwin.a(libcmain.o):(.text+0xa9):


undefined reference to `_WinMain@16' collect2: ld returned 1 exit status

http://gcc.gnu.org/java/faq.html#4_1


In a posting earlier I have written, that the class does not have any main method, so the
information to setup the --main flag does not help. In my project there are only
abstract classes, interface classes and classes without main methods, so I would like
to compile the sources to *.class files


Phil



--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]