I want to create .dll with java jni. My .cpp file refers to an external .lib for a .dll . When I compile this file (with cl command) I get error:
LNK2019: unresolved external symbol "__declspec(dllimport) unsigned long __stdcall ConnectDevice(char const *, unsigned long)"
(__imp_?ConnectDevice@@YGKPBDK@Z)... fatal error LNK1120: 1 unresolved externals
Can I create .dll from .cpp, which uses another .lib & .dll?