Subj : Am I linking correctly? To : borland.public.cpp.borlandcpp From : "peter" Date : Mon Nov 17 2003 02:00 pm I need to find out if I am linking some files correctly. My code compiles, but it seems to me that it is not linked right. Here is my makefile: BATCH=C:\Java\1421\bin\jvm.lib batchuser.exe: batchuser.obj $(BATCH) ilink32 /Tpe/ap/c/x/Gn c0x32 batchuser surscf,batchuser,, \ noeh32 $(BATCH) import32 cw32 batchuser.obj: batchuser.c bcc32 -IC:\Borland\Bcc55\Include -c -RT- -x- batchuser.c explanation: surscf.obj is in the working directory, but that is not what i am concerned about. i need to link to jvm.dll. it is in the c:\java\1421\bin directory. My first question is: Am I linking correctly in this makefile? My 2nd question has to do with COFF2OMF.exe. My jvm.lib was not OMF, so i had to use this utility to convert it. Once I am done, do i need to run implib.exe on jvm.dll? or will the OMF version of JVM.lib be able to interact with the same JVM.DLL in the same place as before. The reason I am suspicious of my linking is that I am making a call to a function in this DLL file and it fails everytime. I have tried calling this function with the most simple of parameters, just to see it work but it will not. Hence, i suspect that the function is not even being reach correctly, hence my suspicions of the linking. PLEASE HELP! Thanks ps- am i in the right forum? i am compiling from the command-line. Please steer me to the right place if not. Thanks! .