jni編譯出錯!急!!

tesge發表於2003-02-21
我在編譯.dll檔案時,用命令 bcc32 -IC:\jdk1.4.1\include -IC:\jdk1.4.1\include\win32 -LD HelloWorldImp.c -Fehello.dll 後報錯如下:

Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
HelloWorldImp.c:
Warning W8057 HelloWorldImp.c 10: Parameter 'env' is never used in function Java
_HelloWorld_displayHelloWorld
Warning W8057 HelloWorldImp.c 10: Parameter 'obj' is never used in function Java
_HelloWorld_displayHelloWorld
Turbo Incremental Link 5.00 Copyright (c) 1997, 2000 Borland
Error: Unresolved external '_main' referenced from C:\BORLAND\BCC55\LIB\C0X32.OB
J
請問是什麼原因呀?謝謝了(我對bc++不熟悉的,不知道是不是命令用錯了)

相關文章