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] 
> <javascript:>> 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] <javascript:>.
>> To post to this group, send email to [email protected] 
>> <javascript:>.
>> 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.

Reply via email to