How to call function prototypes in C/C++/C# in Xamarin IDE

JohnCTX 636 Reputation points
2020-12-23T16:14:49.027+00:00

I have come so far while trying to compile code using imported Java source codes.

One or few last steps. In the main routine, where would I reference function prototype?

Here is the screenshot below`// Save as "HelloJNI.c"

include <jni.h>

include <jni_md.h>

include "HelloJNI.h"

include <stdio.h>

int main(void)
{
/Function prototype to be called in main routine/

return 0;

}

JNIEXPORT void JNICALL Java_HelloJNI_sayHello(JNIEnv*, jobject)
{
printf("Hello World!\n");
return;
}
`

Users can assist me in how to resolve this prototype calling issue, as long as it is related to within the scope of this topic.

Regards,

JohnCTX

C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,561 questions
{count} votes