chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-users] Compile -o option in .setup files


From: Zbigniew
Subject: Re: [Chicken-users] Compile -o option in .setup files
Date: Tue, 30 Oct 2007 22:08:08 -0500

##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 <address@hidden> 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
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/chicken-users
>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]