March 19, 2009
Compliing the C source code in different operating system needs different ways to build a shared library.
In the Windows,
You should give the library name as the name which you called in your java code.
In the Linux,
The name of the shared library ought to add "lib" before the name.
For example,
If you called a library "interface" in java code like below:
System.loadLibrary("interface");
You should make a library "interface.dll" in windows, and "libinterface.so" in Linux.
This article will show you how to make a shared library in Linux.
觀看全文...
In the Windows,
You should give the library name as the name which you called in your java code.
In the Linux,
The name of the shared library ought to add "lib" before the name.
For example,
If you called a library "interface" in java code like below:
System.loadLibrary("interface");
You should make a library "interface.dll" in windows, and "libinterface.so" in Linux.
This article will show you how to make a shared library in Linux.
觀看全文...































