chicken-users
[Top][All Lists]
Advanced

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

Re: [Chicken-users] Compiling a file into both .dll and .o


From: Ian Oversby
Subject: Re: [Chicken-users] Compiling a file into both .dll and .o
Date: Fri, 02 Feb 2007 20:13:17 +0000

Hi guys,

Thanks for the info. (define-extension ...) does exactly what I'm looking for.

Cheers,

Ian

From: "felix winkelmann" <address@hidden>
To: "Ian Oversby" <address@hidden>
CC: address@hidden
Subject: Re: [Chicken-users] Compiling a file into both .dll and .o
Date: Fri, 2 Feb 2007 08:57:32 +0100
MIME-Version: 1.0
Received: from wr-out-0506.google.com ([64.233.184.225]) by bay0-mc2-f12.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.2444); Thu, 1 Feb 2007 23:57:33 -0800 Received: by wr-out-0506.google.com with SMTP id i21so650556wra for <address@hidden>; Thu, 01 Feb 2007 23:57:33 -0800 (PST) Received: by 10.114.12.9 with SMTP id 9mr271277wal.1170403052979; Thu, 01 Feb 2007 23:57:32 -0800 (PST)
Received: by 10.114.123.6 with HTTP; Thu, 1 Feb 2007 23:57:32 -0800 (PST)
X-Message-Info: LsUYwwHHNt3660MmjhEvYg2f34OAemlK3oXsmRrh6gU=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=sD7Pn/duhjYUaJM1GgVD6/rlv4cN3UPM4c2uLbKj5z+/vyStgPEDKTarTdrOkLwwmsm+EmZqq/EL9MlZiuk6YrADJlzcIQqDRNazi5GpMwocPyxR9zvPKeZkMzAAVRHe5LkCxFGYwIDYxTcbu8+dZduNJETVryuKsjD1pwqY+vM=
References: <address@hidden>
Return-Path: address@hidden
X-OriginalArrivalTime: 02 Feb 2007 07:57:33.0855 (UTC) FILETIME=[CBEF4AF0:01C7469F]

On 2/1/07, Ian Oversby <address@hidden> wrote:
Hi,

I have two scheme files that I wish to compile into a single executable.
One of the files has
embedded C code and is the library.  The other file uses functions defined
in the library.

I've added the following declaration to the top of the library:

(declare (unit win32_lib))

And this one to the top of the other file:

(declare (uses win32_lib))

I compile both of these with csc -c <file-name>

In addition, I would like to be able to load the library into csi and test
it interactively.
Unfortunately, with the unit declaration at the top, it doesn't seem to
compile
correctly with the -dynamic -dll flags.  Is there some way I can get the
same file to
compile both dynamically and statically?

Actually, thinking about it, can I use -prologue to add the declare line
just when I'm
compiling statically and is this the best way to do it?

Or you can pass "-unit" to csc when compiling the static library.


cheers,
felix

_________________________________________________________________
MSN Hotmail is evolving – check out the new Windows Live Mail http://ideas.live.com





reply via email to

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