Continuing to investigate, JNI encountered the following point: in the files in which I describe the implementation of methods (cpp), when iostream connected after building the library (which goes fine) during java, while trying to load it, I catch java.lang.UnsatisfiedLinkError: Can't find dependent libraries Empirically found out that this is iostream (I remove it and everything works).
The question is, is this a restriction related to output streams (as java, like this, blocks or controls) or is there any trick?
problem code:
//#include <iostream>// как только подключаю - ошибка #include <windows.h>// для проверки того что другие либы импортятся #include <conio.h>// для проверки того что другие либы импортятся #include "implementation.h" JNIEXPORT void JNICALL voidMethod_impl(JNIEnv *env, jobject obj) { printf("%s", "printf test"); // std::cout<<"test cout\n";// даже если это закомментировано а iostream подключен - всеравно ошибка }