[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: hackery (was: dynamic linking)
From: |
Linas Vepstas |
Subject: |
Re: hackery (was: dynamic linking) |
Date: |
Tue, 16 Feb 2010 09:20:52 -0600 |
On 15 February 2010 11:43, Tomas By <address@hidden> 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"
#include "mylib.mh"
#include "mytest.h"
#include <mercury.h>
main()
{
MR_Word temp = MR_list_empty();
MR_Word* p;
testproc_c(temp,p);
return 0;
}
i.e. is this enough to compile it:
cc main.c -lguile-mytest.so -L .
or do you need something more?
--linas
disclaimer: I am a guile novice