hi,
I always get an exception "java.lang.UnsatisfiedLinkError" when I use
"cout" in my native function.
It works
- when i use "printf"
- other C++ features
Here is an example of the native C code I have:
---
#include <jni.h>
#include "FirstNative.h"
#include <iostream>
using namespace std;
JNIEXPORT void JNICALL Java_FirstNative_display(JNIEnv *env, jobject
obj)
{
cout << "Hello world!\n";
return;
}
---
Am I missing anything?
Regards
Fareeda