Using main() from a shared library in Cygwin 1.7
surferbuddha
jahmail@gmail.com
Thu Jun 24 16:44:00 GMT 2010
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
More information about the Cygwin
mailing list