##sys#load-dynamic-extension will give you the suffix.

e.g.
(define (dynld-name fn)
  (make-pathname #f fn ##sys#load-dynamic-extension) )

(dynld-name "random-mtzig")

On 10/30/07, Ivan Raikov <[EMAIL PROTECTED]> wrote:
>
> Hi all,
>
>    In some of the eggs I have created, I use a compile command along
> the lines of this:
>
>
> (compile -O -d2 -X easyffi -s -o random-mtzig.so
>          random-mtzig.scm randmtzig.c -lchicken -ldl -lm)
>
> The reason of the -o option is that when there are multiple files, the
> compiler would sometimes generate the wrong name for the .so
> library. But now it turns out that Cygwin users are having trouble
> with such compilation commands, because the correct suffix on that
> platform is .dll. So is there a way to tell the Chicken compiler the
> correct name of the library, without specifying the suffix?
>
>      -Ivan
>
>
>
>
>
> _______________________________________________
> Chicken-users mailing list
> Chicken-users@nongnu.org
> http://lists.nongnu.org/mailman/listinfo/chicken-users
>


_______________________________________________
Chicken-users mailing list
Chicken-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/chicken-users

Reply via email to