|
From: Mark L. <mli...@ip...> - 2003-05-16 01:13:53
|
On Wed, 14 May 2003 07:34:25 -0700 (PDT)
Raj Kolluri <raj...@ya...> wrote:
Now I know nothing about JNI but if this is a C program, where is your
int main(int argc, char *argv[])
or something equivalent?
> 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'
|