X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org X-YMail-OSG: lPvtz2YVM1kPKQh_eKO9QFpHTkdK7ooTB7OZudKiKNlVsrDi7gE.twWyGrevQWfx8_FkY0j7RcmlM0hHdAxxtfd5tQ.kF49opbct23RuM.wNBiJA6qjepn1W_JgLGOh61iE- X-Yahoo-Newman-Property: ymail-3 Message-ID: <4840840D.1050002@sbcglobal.net> Date: Sat, 31 May 2008 07:47:41 +0900 From: Tim Prince Reply-To: tprince AT computer DOT org User-Agent: Thunderbird 2.0.0.12 (X11/20080226) MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: Cygwin - linker errors - __assert, __itob and __ftol References: <4ae9b89d0805301549i5ee30654l5f6335544ea38780 AT mail DOT gmail DOT com> <483FD5BB DOT 3090902 AT sbcglobal DOT net> <4ae9b89d0805302227h1960c883p3674ec363a9f2d46 AT mail DOT gmail DOT com> In-Reply-To: <4ae9b89d0805302227h1960c883p3674ec363a9f2d46@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: 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 C S wrote: > i did not know about gcj. i guess i missed that somehow? thanks for the tip. > > my command line right now is: > > gcj -D__int64="long long" -shared -I C:\Apps\Java\jdk1.6.0_05\include > -I C:\Apps\Java\jdk1.6.0_05\include\win32 -I C:\Users\usmsci\My > Documents\shapefiles\shapelib-1.2.10\shapelib-1.2.10 -I > C:\Users\usmsci\My Documents\shapefiles\shapelib128_bin_win -L > c:\Users\usmsci\My Documents\shapefiles\shapelib128_bin_win > fileName.cpp -o libShapeData.dll c:\Users\usmsci\My > Documents\shapefiles\shapelib128_bin_win\shpopen.o c:\Users\usmsci\My > Documents\shapefiles\shapelib128_bin_win\dbfopen.o > > the error i get is: gcj: cannot specify -D without --main what do i > need to do to remedy this? thanks!!! This cygwin list may not accept discussions about gcj specifics which might be handled better on the gcc-help list. I'm not expert enough to explain why --main may be required when making a .dll, but I guess it wants to know the entry function. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/