This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Using main() from a shared library in Cygwin 1.7
- From: surferbuddha <jahmail at gmail dot com>
- To: cygwin at cygwin dot com
- Date: Thu, 24 Jun 2010 09:44:03 -0700 (PDT)
- Subject: Re: Using main() from a shared library in Cygwin 1.7
- References: <AANLkTimwNAqJBuPS6lvvx4SBdlTh49fDHvKtGfUjHQuk@mail.gmail.com> <loom.20100514T140052-451@post.gmane.org>
Hi,
Since I came across this searching for my issue I will post the solutions I
found to work:
gcj was not linking to main, receiving error:
/usr/lib/gcc/i686-pc-cygwin/4.3.4/../../../libcygwin.a(libcmain.o):
I found two solutions, one online and one in the gcj man page:
gcj --main=HelloWorldApp HelloWorldApp.java
gcj -lgij HelloWorldApp.java
both of these options correctly linked the library needed for main.
enjoy!
Elijah
--
View this message in context: http://old.nabble.com/Using-main%28%29-from-a-shared-library-in-Cygwin-1.7-tp28556897p28984421.html
Sent from the Cygwin list mailing list archive at Nabble.com.
--
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