Re: forth-swig linking with multiple libraries?

Gerald Wodni <[email protected]>
Newsgroups gmane.comp.lang.forth.gforth
Message-ID <CAEbSZgHFm7agvLjim+rNM21Pq8jP+ExocuxwN13pH-nAJYxtEw@mail.gmail.com>
Am Mi., 21. Nov. 2018 um 20:23 Uhr schrieb Bernd Paysan <[email protected]>:

> Am Mittwoch, 21. November 2018, 20:07:37 CET schrieb Reepca Russelstein:
> > 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.
>
> Yes, I already requested that feature from Gerald; unfortunately, he just
> started working on SWIG, and stopped, leaving a TODO list (in German) in
> his
> branch. So either we need to do that ourselves, or wait until Gerald has
> time
> again.
>
Don't worry, I did not stop working on SWIG. I just switched to pen and
paper to figure out a proper cross-system, cross-platform way to implement
it.
I think I found a good approach which deals with all the problems in a nice
way by making the interface more direct for the user.
I want this to be easy for the occasional SWIG-user, but extendable for the
pros. This is a thin line to walk.
I already have it staged, and scheduled some time for next week to get it
done and pushed.

So my suggestion for now is to roll back to an un pre-post-fixed version
until next week.

The TODO is just in German for now because I needed it on the go and it was
easier for me to just paste in in the repo.

Regards,
Gerald
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.