source release for Windows / GreenCard.h ?
Antony Courtney
antony@apocalypse.org
Mon, 21 Jan 2002 23:45:35 -0500
Hi all,
I have started to explore the rudimentary ffi support provided with hugs.
I see that the generated C module produced by hugs +G wants to include
"GreenCard.h". Since "GreenCard.h" isn't included in the binary
distribution of hugs, I tried pointing my C compiler at my GreenCard
2.03 installation.
However, the generated code emits a function prototype:
DLLEXPORT(void) initModule(HugsAPI3 *);
which depends on HugsAPI3, which isn't defined in the GreenCard.h
included in GreenCard 2.03.
A few questions:
- what should I need as a developer to use hug's ffi support? Do I need
GreenCard? Do I need a source release of hugs? what should I need if I
were a non-developer user of an ffi-based library under hugs?
- Can / should the GreenCard.h in the official greencard release be
updated to include a definition of HugsAPI3?
- Should the binary release of hugs perhaps include a hugs-specific
GreenCard.h?
Also, I notice that there is a source release of hugs for Unix, but
there does not appear to be a corresponding source release for Windows.
Could one be provided (with appropriate Windows line terminators, and
in WinZip format)?
Thanks!
-antony
--
Antony Courtney
Grad. Student, Dept. of Computer Science, Yale University
antony@apocalypse.org http://www.apocalypse.org/pub/u/antony