Re: [sage-devel] Re: Correct way to wrap a C++ class in Cython

2014-12-24 Thread Volker Braun
In module_list.py you need Extension("sage.graphs.bliss", ["sage/graphs/bliss.pyx"], language="c++"), libraries=['bliss']) On Wednesday, December 24, 2014 4:25:34 PM UTC+1, Jernej Azarija wrote: > > Volker, > > thank you for your help

Re: [sage-devel] Re: Correct way to wrap a C++ class in Cython

2014-12-24 Thread Jernej Azarija
Volker, thank you for your help. I ended up updating & re-compiling Sage and it now works. As for the linkage issue, do you happen to know how to properly link against bliss in this case? Best, Jernej On Tue, Dec 23, 2014 at 7:12 PM, Volker Braun wrote: > Compiles fine for me (after changing

Re: [sage-devel] Re: Correct way to wrap a C++ class in Cython

2014-12-23 Thread Volker Braun
Compiles fine for me (after changing the path to my graph.hh): gcc -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/home/vbraun/Sage/git-temp/local/include -I/home/vbraun/Sage/git-temp/local/include/csage -I/home/vbraun/Sage/git-temp/src -I/home/vbraun/Sage/git-temp/src/sage/e

Re: [sage-devel] Re: Correct way to wrap a C++ class in Cython

2014-12-23 Thread Jernej Azarija
Volker, the branch should be accessible here http://git.sagemath.org/sage.git/log/?h=u/azi/CythonWrap Best, Jernej On Mon, Dec 22, 2014 at 10:37 PM, Volker Braun wrote: > I don't see anything wrong, its somewhere in the stuff that you haven't > posted. Inspect the generated cpp file or post a