I am creating a dll which I will use in my JNI program.
The environment is Win2000, VC++6.0 and J2SDK1.4.2_03.
The cl command that I have given include the JDK/include JDK/include/win32
\Microsoft~3\VC98 and the directory that contains the .c , .h .dll and .lib files.
After the cl command I am giving a link command
link /LibPath:E:\Microsoft~3\vc98\lib /LibPath

:\programs\j2sdk1.4.2_03\lib\jvm.lib /dll /out:rfid.dll rfidDataManagerImpl.obj
However I always get the error of unresolved external symbol.
Creating library rfid.lib and object rfid.exp
rfidDataManagerImpl.obj : error LNK2001: unresolved external symbol _rfCloseReader
rfidDataManagerImpl.obj : error LNK2001: unresolved external symbol _rfErrMessage
rfidDataManagerImpl.obj : error LNK2001: unresolved external symbol _rfGetLastErrno
I have included jvm.lib in the cl command and also in the directory where the project files are.
I am using a .dll and .lib file which is provided by the hardware vendor
How can I resolve the LNK2001 error?
Thanks in advance,
Ann