Re: [Mingw-w64-public] Compiling a dll for JNI and java 64 bits

2011-09-21 Thread RAPPAZ Francois
64 bits 2011/9/21 RAPPAZ Francois mailto:francois.rap...@unifr.ch>> >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

Re: [Mingw-w64-public] Compiling a dll for JNI and java 64 bits

2011-09-21 Thread RAPPAZ Francois
>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

Re: [Mingw-w64-public] Compiling a dll for JNI and java 64 bits

2011-09-21 Thread RAPPAZ Francois
-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

Re: [Mingw-w64-public] Compiling a dll for JNI and java 64 bits

2011-09-20 Thread RAPPAZ Francois
Just in case, here is first lines of the dump of the 32 bits dll that works with java 32 bits. kbhook32.dll: file format pei-i386 kbhook32.dll architecture: i386, flags 0x0133: HAS_RELOC, EXEC_P, HAS_SYMS, HAS_LOCALS, D_PAGED start address 0x10001060 Characteristics 0x2306 execut

Re: [Mingw-w64-public] Compiling a dll for JNI and java 64 bits

2011-09-20 Thread RAPPAZ Francois
java 64 bits 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.

Re: [Mingw-w64-public] Compiling a dll for JNI and java 64 bits

2011-09-20 Thread 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 the libstdc++.dll does not change anyt

Re: [Mingw-w64-public] Compiling a dll for JNI and java 64 bits

2011-09-20 Thread RAPPAZ Francois
Here is the beginning of the dump kbhook.dll: file format pei-x86-64 kbhook.dll architecture: i386:x86-64, flags 0x013b: HAS_RELOC, EXEC_P, HAS_DEBUG, HAS_SYMS, HAS_LOCALS, D_PAGED start address 0x6cb01420 Characteristics 0x2026 executable line numbers stripped

Re: [Mingw-w64-public] Compiling a dll for JNI and java 64 bits

2011-09-20 Thread RAPPAZ Francois
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=

Re: [Mingw-w64-public] Compiling a dll for JNI and java 64 bits

2011-09-19 Thread RAPPAZ Francois
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

Re: [Mingw-w64-public] Compiling a dll for JNI and java 64 bits

2011-09-16 Thread RAPPAZ Francois
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

[Mingw-w64-public] Compiling a dll for JNI and java 64 bits

2011-09-16 Thread 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 kbhook.dll kbhook.cpp gaved a 27 KB kbhook