|
From: Bernhard B. <ma...@ba...> - 2003-08-17 17:02:42
|
Hi,
the very last lines of org_gnu_readline_Readline.c read:
#ifdef WIN32
int WINAPI
readline_init(HANDLE h, DWORD reason, void *foo) {
return 1;
}
#endif
These define a necessary function for DLLs. This might be the reason why
loading of the DLL failes (the log does not show if you defined WIN32). But
don't set it to CYGWIN or cygwin, or else the makefiles work different (it
seems that cygwin does not need all the stuff anymore in
src/native/Makefile).
Maybe you could describe your cygwin-environment, because I never got that far
and I wan't to reproduce it if possible.
Bernhard
> Hi again,
>
> I almost got there but I get the following exception when trying
> to run test.ReadlineTest:
>
> Exception in thread "main" java.lang.UnsatisfiedLinkError:
> C:\cygwin\lib\JavaReadline.dll: Invalid access to memory location
> at java.lang.ClassLoader$NativeLibrary.load(Native Method)
> at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1560)
> at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1485)
> at java.lang.Runtime.loadLibrary0(Runtime.java:788)
> at java.lang.System.loadLibrary(System.java:834)
> at org.gnu.readline.Readline.load(Readline.java:133)
> at test.ReadlineTest.main(ReadlineTest.java:62)
>
> It looks like there is something bad with the DLL built by your
> Makefile. Do you have any idea what it could be? I have attached
> the make log.
>
> Thanks a lot if you can help,
>
> Olivier Lefevre
|