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: Using main() from a shared library in Cygwin 1.7


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


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