|
From: Raj K. <raj...@ya...> - 2003-05-14 14:34:26
|
Hi,
I am trying to write a simple C program to see how JNI works.
This is my code:
======================================
#include <jni.h>
#include <stdio.h>
# include "HelloWorld.h"
JNIEXPORT void JNICALL
Java_HelloWorld_print(JNIEnv *env, jobject obj)
{
printf("Hello World!\n");
return;
}
======================================
When I try to compile the code I get following error:
[Linker error] undefined reference to `WinMain@16'
I am working on Windows 2000 server. Could some one please point me in the right direction.
Thanks,
Raj
---------------------------------
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo. |