On 4/8/07, Michael Hoffman <[EMAIL PROTECTED]> wrote:
> Dieter wrote:
>
> > Pyrex doesn't allow qualifiers in front of prototypes. All of the
> > functions in hdf's high level interface have a macro definition
> > (H5_HLDLL) that expands to __declspec() for that crappy Windows
> > operating system's export/import mechanism.
> >
> > I tried removing the all the macros as well the conditional #define,
> > and get errors for each function similar to:
> >
> > /usr/local/include/H5PTpublic.h:30: error: expected '=', ',', ';',
> > 'asm' or '__attribute__' before 'H5PTcreate_fl'
>
> I think this is somewhat off-topic for this list (would be much better
> off in a Pyrex discussion list), but the solution is to use something like:
>

I did consider that, but in the specific sense of it being hdf5
related, I know where the experts are ;-)

> cdef extern from "H5PTpublic.h":
>      <declarations without things Pyrex doesn't understand here>
>
>
> If you do this, Pyrex will not generate C code for the declarations,
> relying on them being made in H5PTpublic.h instead.
>

Thank you Michael, I will try that out. What I ended up doing was
wrapping the original "dirty" signature in "clean" C wrapper, and then
creating the extension.

-Dieter

>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys-and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Pytables-users mailing list
> Pytables-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/pytables-users
>

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Pytables-users mailing list
Pytables-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pytables-users

Reply via email to