Re: hackery (was: dynamic linking)

2010-02-16 Thread Tomas By
On Tue, February 16, 2010 16:20, Linas Vepstas wrote: > what does ldd libguile-mytest.so show? Are all dependencies resolved? I think so. > If you compile the following, will it run? [...] > i.e. is this enough to compile it: [...] Mercury needs to be initialized, and the C compiler needs to kn

Re: hackery (was: dynamic linking)

2010-02-16 Thread Linas Vepstas
On 15 February 2010 11:43, Tomas By wrote: > Hello again everybody, Just a wild guess -- i'm focusing on the "file not found" aspect of the error message: what does ldd libguile-mytest.so show? Are all dependencies resolved? If you compile the following, will it run? #include "mylibrary.h" #i

hackery (was: dynamic linking)

2010-02-15 Thread Tomas By
Hello again everybody, After some experimentation, it now seems clear that this has nothing to do with garbage collection or Mercury. It is probably just a silly programming error on my part. Here follows full source code for a simple example that illustrates the problem I am having. The importan