Re: forth-swig linking with multiple libraries?
Reepca Russelstein <[email protected]>
| Newsgroups | gmane.comp.lang.forth.gforth |
|---|---|
| Message-ID | <CA+jmvS54Ck1aEq_CjEfS85xND4EePWeE3BU=5bFkoTK=-veRZQ@mail.gmail.com> |
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 SWIG_FORTH_GFORTH_PREFIX. Doing #undef SWIG_FORTH_GFORTH_PREFIX and #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 <[email protected]> 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.