Multiversioning is, at least for now, a C++ feature. You can link C and C++
code together, but you need to put extern "C" {} in the right places. But
then the extern "C" function can't be multiversioning, so you need another
layer of indirection for C code. In any case, post what you have...
On Sunday, September 22, 2013 9:34:53 AM UTC+1, Nathann Cohen wrote:
>
> Hellooooooooo everybody !
>
> Would anybody know if there is an easy way to have a .c, .cpp or .cc file
> in Sage's source code, and have it compiled "manually", i.e. with a call to
> gcc and not through Cython ? I have been having some problems with some C++
> code which cannot be written in Cython only (#13352), and all my attempts
> at getting it compiled through Cython ended up in mysterious segfaults.
>
> The only way I see to make this work right now is to write a spkg, which
> would be far too much. We just want to make the popcount CPU instruction
> used by Sage when it is available.
>
> Have fuuuuuuun everybody !
>
> Nathann
>
--
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/groups/opt_out.