delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/05/31/01:27:51

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Message-ID: <4ae9b89d0805302227h1960c883p3674ec363a9f2d46@mail.gmail.com>
Date: Sat, 31 May 2008 00:27:19 -0500
From: "C S" <usmgoldeneagle AT gmail DOT com>
To: tprince AT computer DOT org, cygwin AT cygwin DOT com
Subject: Re: Cygwin - linker errors - __assert, __itob and __ftol
In-Reply-To: <483FD5BB.3090902@sbcglobal.net>
MIME-Version: 1.0
References: <4ae9b89d0805301549i5ee30654l5f6335544ea38780 AT mail DOT gmail DOT com> <483FD5BB DOT 3090902 AT sbcglobal DOT net>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

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!!!

i dont have a main function in my .cpp file. i assume thats what its
complaining about? i am using the -D option otherwise i would endless
complaints about jlong not having a type and a bunch of other related
stuff.




On Fri, May 30, 2008 at 5:23 AM, Tim Prince <TimothyPrince AT sbcglobal DOT net> wrote:
> C S wrote:
>>
>> hi all - i am trying to compile a C++ native library using the
>> shapelibrary. the one for linux is built but in cygwin i seem to be
>> having some linker error problems and i have to assume it has to do
>> with something regarding MSVC. i am including Java because i am using
>> JNI to talk back and forth to Java. libShapeData.dll is my own native
>> library that i want to build for windows.
>>
>
> Perhaps you could explain why you don't use the cygwin java native compiler
> (gcj).
>
>
>
> --
> 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/
>
>

--
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019