Re: QuantLib-SWIG-0.3.11 cygwin compilation failure
Posted by
jerryji on
URL: http://quantlib.414.s1.nabble.com/Problems-to-use-Quantlib-tp4598p4601.html
Dear Luigi,
Hum... sys.platform in Cygwin returns 'cygwin'. In fact, I have already
updated my setup.py to have the compiler settings portion directed to
the original 'win32' section (primarily because I had my QuantLib
compiled in MS VC and don't think Cygwin gcc would be able to link .lib
or .dll successfully) --
[hidden email]
(Tue Mar 14 21:05:27) $ vi setup.py
...
76 #if sys.platform == 'win32':
77 if sys.platform == 'cygwin':
78 try:
79 QL_INSTALL_DIR = os.environ['QL_DIR']
80 except Exception, e:
81 raise 'unable to detect QuantLib installation'
82 include_dirs = [QL_INSTALL_DIR]
83 library_dirs = [os.path.join(QL_INSTALL_DIR, 'lib')]
84 libraries = None
My problem was more like how to get rid of the
unrecognized/redundant compiler argument Wstrict-prototypes --
cl : Command line error D8021 : invalid numeric
argument '/Wstrict-prototypes'
Where I couldn't find it anywhere in the package
--
[hidden email]
(Tue Mar 14 21:03:38) $ grep -r strict-prototypes
.
[hidden email]
(Tue Mar 14 21:04:04) $
Thanks!
Jerry
Luigi Ballabio wrote:
On 03/13/2006 03:19:49 PM, Jerry Ji wrote:
I'm pulling my hair at QuantLib-SWIG-0.3.11
compilation failure in cygwin: configure doesn't
seem to generate the proper flags for gcc --
It seems like setup.py is getting confused. Can you run the following
in a Python shell from cygwin and tell me what is returned?
import sys
print sys.platform
Later,
Luigi
----------------------------------------
There are two ways to write error-free programs; only the third one
works.
-- unknown