Help me please.. I have to create JNI+DLL to call dll function
I have following files
1. aaa.java
2. aaa.class
3. aaa.h
4. aaajni.c
If source code of aaajni.c has only printf("xxx");
everything works fine
But I have to write my source code in aaajni.c
to call function in
5. bbb.dll
Everytime I try to compile my aaajni.c
D:\workspace\TestJniDll>cl -Ic:\jdk1.3.1_06\include -Ic:\jdk1.3.1_06\include\win
32 -LD aaaJni.c -Feaaajni.dll
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 12.00.8168 for 80x86
Copyright (C) Microsoft Corp 1984-1998. All rights reserved.
EtbGatewayJni.c
Microsoft (R) Incremental Linker Version 6.00.8168
Copyright (C) Microsoft Corp 1992-1998. All rights reserved.
/dll
/implib:aaajni.lib
/out:aaajni.dll
aaaJni.obj
Creating library aaajni.lib and object aaajni.exp
aaaJni.obj :
error LNK2001: unresolved external symbol __imp__bbbfunc
aaajni.dll : fatal error LNK1120: 1 unresolved externals
These errors always occur I don't know why this happen
do I need to put special parameters?

