摘要: 演示使用swig工具创建c语言的java接口,生成.so库和java接口文件。在此之前先要安装swig,安装方法:sudo apt-get install swig1.使用eclipse创建工程。 2.创建包名。3.在包中创建c文件和swig接口文件。文件内容:example.c /* File : example.c */ #include double My_variable = 3.0; int fact(int n) { if (n <= 1) return 1; else return n*fact(n-1); } int my_mod(int x, int... 阅读全文
posted @ 2014-02-28 17:06 ihou 阅读(782) 评论(0) 推荐(0) 编辑