QuantLib Java bridge not compiling

Posted by Alecsandru Chirosca-2 on
URL: http://quantlib.414.s1.nabble.com/QuantLib-Java-bridge-not-compiling-tp6253.html

Dear all,

I am just starting to use QuantLib and the first step I took was to
compile the Java bridge but I encountered :

[xxxxx@localhost Java]# make
java -c++ -I../SWIG -outdir org/quantlib \
            -package org.quantlib -o quantlib_wrap.cpp quantlib.i
Unrecognized option: -c++
Could not create the Java virtual machine.
make: [quantlib_wrap.cpp] Error 1 (ignored)
make  all-am
make[1]: Entering directory `/root/work/QuantLib/QuantLib-SWIG-0.9.7/Java'
java -c++ -I../SWIG -outdir org/quantlib \
            -package org.quantlib -o quantlib_wrap.cpp quantlib.i
Unrecognized option: -c++
Could not create the Java virtual machine.
make[1]: [quantlib_wrap.cpp] Error 1 (ignored)
g++ -c quantlib_wrap.cpp -fno-strict-aliasing -g -O2
-I/opt/jdk1.5.0_17/include -I/opt/jdk1.5.0_17/include/linux
`quantlib-config --cflags` -o quantlib_wrap.o
g++: quantlib_wrap.cpp: No such file or directory
g++: no input files
make[1]: *** [quantlib_wrap.o] Error 1
make[1]: Leaving directory `/root/work/QuantLib/QuantLib-SWIG-0.9.7/Java'
make: *** [all] Error 2
[xxxxx@localhost Java]#

QuantLib is installed with the Boost environment :

QuantLib:
[root@localhost Java]# rpm -qa | grep QuantLib
QuantLib-test-0.9.7-3.fc10.i386
QuantLib-devel-0.9.7-3.fc10.i386
QuantLib-doc-0.9.7-3.fc10.i386
QuantLib-0.9.7-3.fc10.i386

Boost
[root@localhost Java]# rpm -qa | grep boost
boost-1.34.1-17.fc10.i386
boost-devel-1.34.1-17.fc10.i386

c :
[root@localhost Java]# c++ --version
c++ (GCC) 4.3.2 20081105 (Red Hat 4.3.2-7)
Copyright (C) 2008 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


Can someone help me please with this error?


Best Regards,
Alecsandru Chirosca

------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users