From: Glen_Fullmer-EGF002 AT email DOT mot DOT com (Glen Fullmer-EGF002) Subject: Re: .reloc section in EXE 20 Oct 1998 07:57:22 -0700 Message-ID: <199810191506.KAA18500.cygnus.gnu-win32@emerald.ccrl.mot.com> References: <9810190347 DOT AA15494 AT modi DOT xraylith DOT wisc DOT edu> To: gnu-win32 AT cygnus DOT com Cc: khan AT xraylith DOT wisc DOT edu Howdy, >>>> "MK" == Mumit Khan writes: MK> For help on creating relocatable DLLs, see my dllhelpers package at MK> http://www.xraylith.wisc.edu/~khan/software/gnu-win32/. Colin Peters MK> has a nice intro on creating dlls as well on his web page (follow MK> the link from my "Related Sites" area). Q#1: Gcc, Java, and dlls. Using Mumit's recommendations and others I was able to create a dll with all my JNI calls and nm confirms that they are there. However when I try to open the DLL from Java I get: Error: error: java.lang.UnsatisfiedLinkError: no libjtoc in shared library path I do have the directory in which libjtoc.dll resides in the PATH environment variable. On the Sun and HP one deletes the 'lib' prefix to the libjtoc. I have tried it both ways on the PC - both failing similarly. Java code snippet looks like: String libname = "libjtoc"; try { System.loadLibrary(libname); } catch (UnsatisfiedLinkError Err) { gutil.errorMsg("error: " + Err); return; } Suggestions to fix this? Q#2: When trying to link a couple of other static libraries into the dll for which I don't have source I get a number of compile error messages complaining about: undefined reference to "_imp__" Where includes: free fprintf printf malloc strncpy etc.... What could be causing this? The libraries include C and C++ code. Q#3: I assume that Java JNI requires a relocatable DLL. Is that correct? Any help on any of these questions would be appreciated. Thanks, -- Glen Fullmer,(847)538-3082, Mail: , ******************************************************************************* * "For a successful technology, reality must take precedence * * over public relations, for Nature cannot be fooled." - Richard P. Feynman * ******************************************************************************* - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request AT cygnus DOT com" with one line of text: "help".