On Nov 19, 3:44 pm, Seth <wbu...@gmail.com> wrote:
> unfortunately doesnt work. The library loads succesfully but i still
> get the error when calling add. Note that compiling on the top is a
> workaround to get it working on the repl.
>
> i added the loadlibrary to an init function which is good and i
> decided to ahead of time compile it - and it worked! I could call
> (init) and then add, without getting a link error!
>
> The question is why do i need to ahead of time compile this code to
> get it to work? Any ideas?
Without looking at your code I can't really say what is going wrong. I
can only repeat what I said before about System/loadLibrary requiring
the dynamic C library to be in the java.library.path path, which must
be set before calling System/loadLibrary for the first time. That's
the only issue I can remember having with it right now.
If the library seems to load fine but you get a link error when
looking up a function then the problem could be that you are loading
the wrong version of the library, or you just spelled something wrong?

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to