Looks like we're on the right track - though it now seems to not recognize
the scope of this enum within the library?
=====
build/cythonized/sage/graphs/bliss.cpp: In function 'bliss::Graph*
__pyx_f_4sage_6graphs_5bliss_bliss_graph(PyObject*, PyObject*, PyObject*,
PyObject*)':
build/cythonized/sage/graphs/bliss.cpp:1895:38: error: 'shs_f' is not a
member of 'bliss'
__pyx_v_g->set_splitting_heuristic(bliss::shs_f);
^
error: command 'gcc' failed with exit status 1
====
On Mon, Dec 29, 2014 at 9:45 PM, Volker Braun <[email protected]> wrote:
> You need to move the typedef outside of the class scope, see my second
> post.
>
>
> On Monday, December 29, 2014 7:57:02 PM UTC+1, Jernej Azarija wrote:
>>
>> Volker,
>>
>> this gives me the exact same error:
>>
>> ========
>> cdef cppclass Graph(AbstractGraph):
>> ctypedef enum Graph_SplittingHeuristic
>> "Graph::SplittingHeuristic":
>> ^
>> ------------------------------------------------------------
>>
>> sage/graphs/bliss.pyx:36:22: Syntax error in C variable declaration
>> ========
>>
>> On Mon, Dec 29, 2014 at 6:33 PM, Volker Braun <[email protected]> wrote:
>>
>>> Also, Cython doesn't support class-level typedefs so you'll probably
>>> need a version of the "literal" trick:
>>>
>>> ctypedef enum Graph_SplittingHeuristic "Graph::SplittingHeuristic":
>>> shs_f
>>> foo
>>> bar
>>>
>>> --
>>> You received this message because you are subscribed to a topic in the
>>> Google Groups "sage-devel" group.
>>> To unsubscribe from this topic, visit https://groups.google.com/d/
>>> topic/sage-devel/1AzzUVqTITY/unsubscribe.
>>> To unsubscribe from this group and all its topics, send an email to
>>> [email protected].
>>> To post to this group, send email to [email protected].
>>> Visit this group at http://groups.google.com/group/sage-devel.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>> --
> You received this message because you are subscribed to a topic in the
> Google Groups "sage-devel" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/sage-devel/1AzzUVqTITY/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/sage-devel.
> For more options, visit https://groups.google.com/d/optout.
>
--
You received this message because you are subscribed to the Google Groups
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.