M
Mark Chavira
I am trying to create a java interface to a bunch of .a libraries. I am
using linux. I have put the "native" methods in the java code and
implemented them in mark_cudd_Native.c. The .a files are called cudd.a,
mtr.a, obj.a, st.a, util.a, and epd.a. I am trying then to compile
mark_cudd_Native.c and link mark_cudd_Native.o and all of the .a files
like this:
gcc -o libcudd.so -shared -Wl,-soname,libnative.so \
-static -lc \
-lobj -lcudd -lmtr -lst -lutil -lepd \
-I/export/home/jdk1.2/include \
-I/export/home/jdk1.2/include/linux \
-I $MYCUDD/cudd \
-I $MYCUDD/mtr \
-I $MYCUDD/st \
-I $MYCUDD/util \
-I $MYCUDD/epd \
-I $MYCUDD/obj \
-L$MYCUDD/cudd \
-L$MYCUDD/mtr \
-L$MYCUDD/st \
-L$MYCUDD/util \
-L$MYCUDD/epd \
-L$MYCUDD/obj \
mark_cudd_Native.c
But the .a files don't get linked in. Can somebody suggest a change to
my compile command? Thanks!
Mark
using linux. I have put the "native" methods in the java code and
implemented them in mark_cudd_Native.c. The .a files are called cudd.a,
mtr.a, obj.a, st.a, util.a, and epd.a. I am trying then to compile
mark_cudd_Native.c and link mark_cudd_Native.o and all of the .a files
like this:
gcc -o libcudd.so -shared -Wl,-soname,libnative.so \
-static -lc \
-lobj -lcudd -lmtr -lst -lutil -lepd \
-I/export/home/jdk1.2/include \
-I/export/home/jdk1.2/include/linux \
-I $MYCUDD/cudd \
-I $MYCUDD/mtr \
-I $MYCUDD/st \
-I $MYCUDD/util \
-I $MYCUDD/epd \
-I $MYCUDD/obj \
-L$MYCUDD/cudd \
-L$MYCUDD/mtr \
-L$MYCUDD/st \
-L$MYCUDD/util \
-L$MYCUDD/epd \
-L$MYCUDD/obj \
mark_cudd_Native.c
But the .a files don't get linked in. Can somebody suggest a change to
my compile command? Thanks!
Mark