Francois,
I was trying for some time to build dlls for JNI and java 64 bits and
always failed (albeit using gfortran as linker).
Would you mind listing all your compile and linker flags?
Thx a bunch,
H.
--
All the data
x86_64-w64-mingw32-strip kbhook.dll
gives a 88 kb file instead of 509 kb.
Thanks
François
From: Ruben Van Boxem [mailto:vanboxem.ru...@gmail.com]
Sent: mercredi, 21. septembre 2011 13:32
To: mingw-w64-public@lists.sourceforge.net
Subject: Re: [Mingw-w64-public] Compiling a dll for JNI and java
2011/9/21 RAPPAZ Francois
> >Btw I assume you could shrink DLL in size by using here strip for it.
>
>
> How exactly ? is it a compiler option ?
>
>
strip is a part of binutils and is a standalone program. You can run it like
so:
strip myexecutable.exe
or
strip mylibrary.dll
or
x86_64-w64-mingw3
>Btw I assume you could shrink DLL in size by using here strip for it.
How exactly ? is it a compiler option ?
François
--
All the data continuously generated in your IT infrastructure contains a
definitive record of cu
2011/9/21 RAPPAZ Francois :
> Brv
>
> It works... the dll is now 509 KB, but it is loaded without error.
>
> For me this is all like magic going on...
>
> Thanks a lot for your help.
>
> François
>
Nice to hear that it finally works for you. No problem, be welcome :)
Btw I assume you coul
-public@lists.sourceforge.net
Subject: Re: [Mingw-w64-public] Compiling a dll for JNI and java 64 bits
Hi,
So I see that here no libstdc++-6.dll is linked. Could you try to rebuild it
with additional option '-static'?
Kai
2011/9/21 RAPPAZ Francois :
> Just in case, here is first
able 0000000a
> Table Addresses
> Export Address Table 5028
> Name Pointer Table 5050
> Ordinal Table 507
>
>
>
> Francois
>
> -Original Message-
> From
Francois
-Original Message-
From: Kai Tietz [mailto:ktiet...@googlemail.com]
Sent: mardi, 20. septembre 2011 09:59
To: mingw-w64-public@lists.sourceforge.net
Subject: Re: [Mingw-w64-public] Compiling a dll for JNI and java 64 bits
So,
Hmm, could you show me the dump of this DLL
Halas, Copying libgcc_s_sjlj-1.dll does not removed the error message.
François
-Original Message-
From: Kai Tietz [mailto:ktiet...@googlemail.com]
Sent: mardi, 20. septembre 2011 11:13
To: mingw-w64-public@lists.sourceforge.net
Subject: Re: [Mingw-w64-public] Compiling a dll for JNI and
2011/9/20 RAPPAZ Francois :
> Copying the libstdc++-6.dll file from
> C:\cygwin\usr\x86_64-w64-mingw32\sys-root\mingw\bin
> into the folder where the newly compiled dll is, together with my class
> files, does not removed the problem. I still have an error message.
>
> Renaming libstdc++-6.dll in
anything
François
-Original Message-
From: Kai Tietz [mailto:ktiet...@googlemail.com]
Sent: mardi, 20. septembre 2011 10:38
To: mingw-w64-public@lists.sourceforge.net
Subject: Re: [Mingw-w64-public] Compiling a dll for JNI and java 64 bits
Thanks,
so first question. Is libstdc++ DLL next
Thanks,
so first question. Is libstdc++ DLL next to the loaded DLL in search-path?
If not then just copy 64-bit libstdc++ DLL next to your DLL, so that
it is found on load.
To avoid all this DLL mess, you can try to build this DLL static via
the link-option '-static-libgcc -static-libstdc++' (IIR
Subject: Re: [Mingw-w64-public] Compiling a dll for JNI and java 64 bits
So,
Hmm, could you show me the dump of this DLL with objdump?
Call for this 'x86_64-w64-mingw32-objdump -x >dump.txt', and attach
me this file to mail. I am mainly interested in the export-section of this DLL.
So,
Hmm, could you show me the dump of this DLL with objdump?
Call for this 'x86_64-w64-mingw32-objdump -x >dump.txt',
and attach me this file to mail. I am mainly interested in the
export-section of this DLL.
Thanks,
Kai
ktiet...@googlemail.com]
Sent: mardi, 20. septembre 2011 09:15
To: mingw-w64-public@lists.sourceforge.net
Subject: Re: [Mingw-w64-public] Compiling a dll for JNI and java 64 bits
2011/9/20 RAPPAZ Francois :
> Yes, that does not work, on W7, to have a dll usable with java 64 bits:
> jdk=
indows 7 sorry.
>>
>> >From the control panel, system, I see that I have Windows 7 Enterprise, 64
>> >Bit operating system.
>>
>> Francois
>>
>>
>> -----Original Message-----
>> From: Kai Tietz [mailto:ktiet...@googlemail.com]
>> Sen
ared -o kbhook.dll kbhook.cpp
Francois
-Original Message-
From: NightStrike [mailto:nightstr...@gmail.com]
Sent: lundi, 19. septembre 2011 15:46
To: mingw-w64-public@lists.sourceforge.net; RAPPAZ Francois; Kai Tietz
Subject: Re: [Mingw-w64-public] Compiling a dll for JNI and java 64 bits
Original Message-
> From: Kai Tietz [mailto:ktiet...@googlemail.com]
> Sent: vendredi, 16. septembre 2011 10:15
> To: mingw-w64-public@lists.sourceforge.net
> Subject: Re: [Mingw-w64-public] Compiling a dll for JNI and java 64 bits
>
> 2011/9/16 RAPPAZ Francois :
>> I have
public@lists.sourceforge.net
Subject: Re: [Mingw-w64-public] Compiling a dll for JNI and java 64 bits
2011/9/16 RAPPAZ Francois :
> I have a application that use a dll with Java native interface. Under
> windows XP, using Cygwin, that 2 lines
>
> jdk='/cygdrive/c/Program Files/Java/Jdk
2011/9/16 RAPPAZ Francois :
> I have a application that use a dll with Java native interface. Under windows
> XP, using Cygwin, that 2 lines
>
> jdk='/cygdrive/c/Program Files/Java/Jdk1.6.0_24'
> g++ -w -mno-cygwin -I"$jdk/include" -I"$jdk/include/win32"
> -Wl,--add-stdcall-alias -shared -o kbhoo
I have a application that use a dll with Java native interface. Under windows
XP, using Cygwin, that 2 lines
jdk='/cygdrive/c/Program Files/Java/Jdk1.6.0_24'
g++ -w -mno-cygwin -I"$jdk/include" -I"$jdk/include/win32"
-Wl,--add-stdcall-alias -shared -o kbhook.dll kbhook.cpp
gaved a 27 KB kbhook
21 matches
Mail list logo