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 |
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 |
Also, the empty linker option suggests that something went wrong
during ./configure. Did you have any warnings when you ran it? Luigi On Mon, Nov 19, 2012 at 12:03 PM, Bojan Nikolic <[hidden email]> wrote: > > 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 ------------------------------------------------------------------------------ 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 |
Hi, I don't recall a problem at configure stage - and I ran a couple of the others (R, Scala) to see if it wasn't more widespread. Thanks for your help anyway guys I will have to get back on this tomorrow now.
Bojan my g++ version is 4.7.2 - not sure if this would be relevant? Thx, A On 19 November 2012 12:31, Luigi Ballabio <[hidden email]> wrote: Also, the empty linker option suggests that something went wrong ------------------------------------------------------------------------------ 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 |
Alex Wirtz <[hidden email]> writes: > Bojan my g++ version is 4.7.2 - not sure if this would be relevant? Yes, see http://gcc.gnu.org/gcc-4.7/porting_to.html The empty "-Wl" is in the Makefile.am files that I have so I do not think it is a configure problem, probably options just left over from some experimenting a while ago. 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 |
Thanks, will try a fresh compile and see what comes up.
On 20 November 2012 11:25, Bojan Nikolic <[hidden email]> wrote:
------------------------------------------------------------------------------ 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 |
Free forum by Nabble | Edit this page |