jni编译出错!急!!

03-02-21 tesge

我在编译.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++不熟悉的,不知道是不是命令用错了)