unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
* A [serious] problem with module integration
@ 2012-11-16 13:54 Panicz Maciej Godek
  2012-11-16 16:03 ` Mike Gran
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Panicz Maciej Godek @ 2012-11-16 13:54 UTC (permalink / raw)
  To: guile-user

Hi,
I've been making some tiny changes in the way my application
uses modules. Previously I was including the scheme code right
into the C binary. This wasn't particularly elegant sollution, as it
didn't allow the code to be compiled, so I decided that I use guile
modules wherever I can.
And now I have a problem: the modules that I wrote make use
of the symbols defined by my application (using scm_c_define...),
but they are unavailable outside my application, i.e. for external
modules.

The result is that the modules don't work, because certain symbols
are undefined that are needed to build the necessary definitions.

If I'd taken a different approach, e.g. if I'd decided to use shared
libraries instead of having the main application call scm_with_guile,
the solution would be easy -- I could just define the wrappers around
the procedures exported by the library.

But now I'm in the big trouble.

Is there any way for the symbols introduced using scm_c_define...
to become available for external modules (that are meant to be
used within the application that I create)? I've tried creating
an empty module that includes the symbols exported by my app,
and nothing else, but it doesn't seem to help.

Perhaps there's some other idea that you could suggest?



^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2012-11-17 20:28 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-16 13:54 A [serious] problem with module integration Panicz Maciej Godek
2012-11-16 16:03 ` Mike Gran
2012-11-16 16:10   ` Mike Gran
2012-11-16 16:38   ` Panicz Maciej Godek
2012-11-16 16:41   ` Mark H Weaver
2012-11-16 17:10     ` Mike Gran
2012-11-16 20:40 ` Ludovic Courtès
2012-11-17 20:28 ` rixed

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).