[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [gforth] forth-swig linking with multiple libraries?

From: Reepca Russelstein
Subject: Re: [gforth] forth-swig linking with multiple libraries?
Date: Wed, 21 Nov 2018 19:07:37 +0000

Hm, well, I tried wrapping it in another file, but I can't seem to
find an option to get rid of the prefix and postfix. Nesting c-library
sections doesn't seem to work (unsurprising, end-c-library resets a
bunch of stuff). I saw the "no-prefix" option used in gforth's
bindings, but I think that refers to a different prefix than
#undef SWIG_FORTH_GFORTH_POSTFIX also didn't seem to do anything. Just
making it possible to specify multiple libraries to link against
wouldn't solve the problem entirely, either - al_init is defined as a
macro, and I wish to define a C function (using \c lines inside
c-library) that wraps that.
On Wed, Nov 21, 2018 at 4:14 AM Reepca Russelstein
<address@hidden> wrote:
> Example: trying to wrap allegro. Name swig module allegro, so s"
> allegro" add-lib gets put at the start of the output. Good stuff!
> Unfortunately, I also need to link to allegro_audio. How should I do
> that? Write another file that includes that file and duplicate the
> include section?
> Also, is this a proper place to ask questions about forth-swig?
> Thanks.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]