Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - bjo

#1
newLISP and the O.S. / Re: A bug on Windows
November 22, 2009, 12:46:54 AM
The problem is that the gmp module depends on (import)'s behaviour when using (file?) to determine which file to use:



(set 'files '(
    "/usr/lib/libgmp.dylib" ; Mac OSX
    [...]
    "libgmp-3.dll" ; Win32 in Path))

(set 'library (files (or
  (find true (map file? files))
    (begin (println "cannot find GMP library") (exit)))))


On windows this piece of code will always fail.
#2
newLISP and the O.S. / Re: A bug on Windows
November 21, 2009, 04:03:02 AM
On Windows (Vista) the (file?) built-in does not seem to look in any or all PATHs:



> (file? "libgmp-3.dll")
nil
> (import "libgmp-3.dll" "__gmpz_mul")
__gmpz_mul <1000D880>