I want to use C++ Code in Java. I know I have to use JNI. And now I want to compile a shared library in C++ on Linux. I using the Code::Blocks 16.01 IDE and the GNU GCC Compiler. And now I want to compile this very simple code: I want to use C++ Code in Java. I know I have t