X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=1.0 required=5.0 tests=BAYES_20,DKIM_ADSP_CUSTOM_MED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED,SPF_HELO_PASS,TW_GC,T_RP_MATCHES_RCVD,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org Message-ID: <28984421.post@talk.nabble.com> Date: Thu, 24 Jun 2010 09:44:03 -0700 (PDT) From: surferbuddha To: cygwin AT cygwin DOT com Subject: Re: Using main() from a shared library in Cygwin 1.7 In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit References: X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com 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