Posted by
mrtreibe on
May 20, 2004; 8:17pm
URL: http://quantlib.414.s1.nabble.com/ruby-wrapper-issues-tp10588.html
Two quick questions about the ruby compilation.
1). When I'm compiling the ruby wrapper under darwin I get a lot of
warnings like:
rwin -I. -I/sw/include -I/sw/include -Wno-uninitialized -Wno-
unused-function -c quantlib_wrap.cpp
In file included from /sw/include/ql/qldefines.hpp:54,
from /sw/include/ql/quantlib.hpp:22,
from quantlib_wrap.cpp:909:
/sw/include/ql/config.hpp:101:1: warning:
"PACKAGE_BUGREPORT" redefined
where "PACKAGE_BUGREPORT" is defined in ruby.h but set to "". I'm
assuming this is normal right? Will this affect ruby in any way?
2). When "setup.rb install" is passed --prefix, the wrapper is
installed in the ruby lib directory (with the new prefix) but when the
--prefix is excluded, the wrapper is installed into the ruby site lib
directory. I'm assuming this is a bug so I made a quick patch (made
against the current cvs version) to correct this so that when --prefix
is passed, the wrapper is installed into the site lib directory.
(although I probably made the diff incorrectly since I really don't
know cvs' diff command)
Mark.