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

JohnCTX 636 Reputation points

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");

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.



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