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