Dave - sorry i forgot to ask was there anything that i could try to
get rid of those few undefined reference errors? thanks!!
On Tue, Jun 3, 2008 at 8:49 AM, C S <[EMAIL PROTECTED]> wrote:
> my whole command line script is:
>
> g++ -mno-cygwin -D__int64="long long" -Wl,-mno-cygwin -shared -I
> "C:
my whole command line script is:
g++ -mno-cygwin -D__int64="long long" -Wl,-mno-cygwin -shared -I
"C:\Apps\Java\jdk1.6.0_05\include" -I
"C:\Apps\Java\jdk1.6.0_05\include\win32" -I "C:\Users\me\My
Documents\shapefiles\shapelib-1.2.10\shapelib-1.2.10" -I
"C:\Users\me\My Documents\shapefiles\shapelib
C S wrote on 03 June 2008 14:25:
> Brian,
>
> i figured out that not only do i need to compile against the
> no-cygwin flag but also link to it as well. so i tried to add the -Wl
> option like this:
>
> g++ -mno-cygwin -D__int64="long long" -W1-mno-cygwin
Ah, there's your problem. You type
Brian,
i figured out that not only do i need to compile against the
no-cygwin flag but also link to it as well. so i tried to add the -Wl
option like this:
g++ -mno-cygwin -D__int64="long long" -W1-mno-cygwin -shared -I
"C:\Apps\Java\jdk1.6.0_05\include" -I
"C:\Apps\Java\jdk1.6.0_05\include\win3
Dave Korn wrote (archived at
http://www.cygwin.com/ml/cygwin/2008-05/msg00643.html)
>Tim Prince wrote on 30 May 2008 23:48:
>> C S wrote:
>>> gcj -D__int64="long long" -shared -I C:\Apps\Java\jdk1.6.0_05\include
>
>>> the error i get is: gcj: cannot specify -D without --main
>
>> might be handle
thanks for the tip Brian. i thought that i had tried to -mno-cygwin
option before but maybe i did not. i have a script file set up now
with that command option:
$g++ -mno-cygwin -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:\U
Tim Prince wrote on 30 May 2008 23:48:
> C S wrote:
>> gcj -D__int64="long long" -shared -I C:\Apps\Java\jdk1.6.0_05\include
>> the error i get is: gcj: cannot specify -D without --main
> might be handled better on the gcc-help list. I'm not expert enough to
> explain why --main may be requi
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\shapel
C S wrote:
> gcc -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\shapelib128_bin_win -L\c:\Users\usmsci\My
> Documents\shapefiles\shapelib128_bin_win myFile.cpp -o
> libShapeData.dll c:\Users
i realized after i sent that last email that maybe i wasnt clear
earlier that i already have created a .h file to match my JNI .Cpp
file using the javah utility. so i have already done the work for
that. i just need to link that up into my own .DLL to be used by a
.java class. already have it worki
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 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
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
13 matches
Mail list logo