SWIG Java build fail

Posted by Alex Wirtz on
URL: http://quantlib.414.s1.nabble.com/SWIG-Java-build-fail-tp8797.html

Hi,

I am compiling the SWIG Java bindings for QL1.2 and get the following error on running the make -C Java command:

g++ -c quantlib_wrap.cpp -fno-strict-aliasing -g -O2 -I/usr/lib/jvm/jdk1.7.0/include -I/usr/lib/jvm/jdk1.7.0/include/linux `quantlib-config --cflags` -o quantlib_wrap.o
g++ -shared quantlib_wrap.o -Wl -o libQuantLibJNI.so `quantlib-config --libs`
g++: error: unrecognized command line option ‘-Wl’  ***HERE***
make[1]: *** [libQuantLibJNI.so] Error 1
make[1]: Leaving directory `/home/alexw/Desktop/QuantLib-SWIG-1.2/Java'
make: *** [all] Error 2
make: Leaving directory `/home/alexw/Desktop/QuantLib-SWIG-1.2/Java'

Has anyone else encountered a similar problem with this unrecognised command line option? All steps prior to this (the Quantlib c++ build, the configuration for building the SWIG bindings, etc) all have gone through fine.

OS: Ubuntu Linux 12.10 32-bit
JAVA_HOME: /usr/lib/jvm/jdk1.7.0 <- the Oracle version
g++ version: 4.7.2-ubuntu1

Any guidance much appreciated!

Thanks, Alex W




------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users