Re: [tcljava-user] TclBlend build problems using MSYS on WinNT
Brought to you by:
mdejong
|
From: Mo D. <md...@un...> - 2003-04-08 20:04:54
|
On Tue, 08 Apr 2003 12:47:00 -0600 rja...@nm... (Robert E. Jackson) wrote: > On a WINNT box, > > Using MSYS, I built tcl8.4.2, tk8.4.2, and threads-2.5.1. > > I installed JDK 1.3.1_07 in C:/jdk1.3.1_07 and added > <jdk>/bin, <jdk>/jre/bin, and <jdk>/jre/bin/classic to my > PATH. You should not need to set your PATH before running ./configure, but that does not seem to have anything to do with the error you are getting. > configure:4517: checking to see if we can link a JNI application > configure:4552: gcc -o conftest.exe -g -O2 -I/c/jdk1.3.1_07/include > -I/c/jdk1.3.1_07/include/win32 conftest.c /c/jdk1.3.1_07/lib/jvm.lib >&5 > C:\TEMP/ccinaaaa.o: In function `main': > > c:/TclBlend/tclBlend1.3.0/configure:4547: undefined reference to > `_imp__JNI_GetCreatedJavaVMs@12' ... > Is there some more magic I need to do with my PATH or other environment > variables? No, that should have worked. Could you run `ls -la /c/jdk1.3.1_07/lib/jvm.lib` just to make sure that the lib file is there and then run `nm /c/jdk1.3.1_07/lib/jvm.lib | grep JNI_` and post the results? Something is going wrong while linking, but I am not sure what it could be. The jni.h header is getting read correctly, since it is searching for the dll import symbol '_imp__JNI_GetCreatedJavaVMs@12', the problem is that this symbol does not seem to be found in the lib file. cheers Mo |