2009/7/28 Sébastien Ramage <sram...@poifindus.com> > After commenting the line related to NIS in the Modules.py script, the > swig generation works fine but after I get the same error during the build. > > I really don't know what's happen, I'm not a c++ guru...
The traceback tells that the acosh function is defined twice. Here is a comment extracted from the pymath.h header file ( http://svn.python.org/view/python/branches/release26-maint/Include/pymath.h?view=markup ): /* Python provides implementations for copysign, acosh, asinh, atanh, * log1p and hypot in Python/pymath.c just in case your math library doesn't * provide the functions. * *Note: PC/pyconfig.h defines copysign as _copysign */ * *A solution is perhaps to say python to use the default acosh and asinh functions by defining the HAVE_ACOSH, HAVE_ASINH and HAVE_ATANH macros. In order to to that, edit 'environment.py' script and look for the following lines: DEFINE_MACROS = [('WNT', None),('WIN32',None),\ ('_WINDOWS',None),('CSFDB',None),\ ('__PYTHONOCC_MAXINT__',sys.maxint)] And replace it with the lines: DEFINE_MACROS = [('WNT', None),('WIN32',None),\ ('HAVE_ACOSH',None),('HAVE_ASINH',None),('HAVE_ATANH',None),\ ('_WINDOWS',None),('CSFDB',None),\ ('__PYTHONOCC_MAXINT__',sys.maxint)] Then restart the compilation process: python setup.py build -cmsvc Let me know about the results you get. Cheers, Thomas
_______________________________________________ Pythonocc-users mailing list Pythonocc-users@gna.org https://mail.gna.org/listinfo/pythonocc-users