On Thursday, September 6, 2012 6:57:38 PM UTC-4, Sparro wrote:
>
> I have a couple C functions I'd like to be able to add to my BASIC 
> programs without having to use the jbc command manually (I really like 
> JED).  So here's a test scenario:
>
> I have a C source file foo.c that contains function foo(STRING* stuff).
>
> I have a BASIC source file BAR.b that contains DEFC foo(STRING) and later 
> on has foo("Hello, world!").
>
> If I compile an object for foo.c with jbc it complains that I have no 
> 'main' function.
>
> If I compile BAR.b on its own it complains that it can't resolve foo().
>
> If I compile them both together from the command line with jbc it works 
> fine, but that means I can't use JED to work with BAR.b and with the number 
> of source files we have, that really isn't a workable solution.
>
> What do I need to do to make a library out of foo.c and where do I need to 
> put it so that DEFC foo(STRING) can work without having to do command-line 
> jiggery?
>
>
>

-- 
-- 
IMPORTANT: T24/Globus posts are no longer accepted on this forum.

To post, send email to [email protected]
To unsubscribe, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/jBASE?hl=en



Reply via email to