Posted by
Bojan Nikolic on
URL: http://quantlib.414.s1.nabble.com/SWIG-Java-build-fail-tp8797p8798.html
Alex Wirtz <
[hidden email]> writes:
> 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
The "-Wl" option is a mechanism to pass-through options to the
linker. In this case no options are passed in. This works fine for me
with GNU g++ version 4.6.3, which version are you using?
As no option is passed in and you are having problems it is probably OK
to delete the "-Wl".
Best,
Bojan
--
Bojan Nikolic ||
http://www.bnikolic.co.uk------------------------------------------------------------------------------
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