hmmm...seems like my last message didn't get through.
Anyway, thanks for the pointers. I guess i'll have to
learn how to compile c code into shared
libraries...Hopefully I won't have to read a whole
book to do it... If it is too complicated, I wonder if
it would be easier to write c functions and then use
the rebol shell (instead of libraries) to send input
and get output from the c functions (via the shell). I
guess i'd have to convert the c output to a string and
then in rebol, convert the string to valid rebol
datatypes.
on the flip side, I was also wondering, as crazy as it
may sound, if it would be possible to put rebol code
into a shared library so i can call it in my c code.
The reason i'd like to do this is simply because in
many of our programming assignments, we have to
implement c functions within a larger program. I'd
like to implement those functions in rebol by calling
a shared rebol library...i doubt this is
possible...but thought i'd ask anway..
rishi
--- [EMAIL PROTECTED] wrote:
>
> You certainly can. What you would do is compile a
> shared library with
> your C functions and then use the library component
> of View/Pro to
> access them. Check out the documentation on this
> component here:
>
> http://www.rebol.com/docs/library.html
>
> If you need more working examples, I'm sure the
> friendly folks on this
> list will help you out.
>
> Sterling
>
> > Hi. I am working on a program for a class and was
> > wondering if it would be possible, using view/pro,
> to:
> >
> > 1. send input to and execute a c function from
> rebol.
> > 2. receive the output of the c function back to
> rebol.
> >
> > The reason I want to do this is because their is a
> > recursive function in the code that needs to run
> > fast..
> >
> > is this possible? If so, what is the general way i
> > would go about doing this?
> >
> > thanks,
> >
> > rishi
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Yahoo! Auctions - buy the things you want at great
> prices
> > http://auctions.yahoo.com/
> > --
> > To unsubscribe from this list, please send an
> email to
> > [EMAIL PROTECTED] with "unsubscribe" in the
> > subject, without the quotes.
>
> --
> To unsubscribe from this list, please send an email
> to
> [EMAIL PROTECTED] with "unsubscribe" in the
> subject, without the quotes.
>
__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/
--
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the
subject, without the quotes.