[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Chicken-users] Compiling a file into both .dll and .o
From: |
Ian Oversby |
Subject: |
[Chicken-users] Compiling a file into both .dll and .o |
Date: |
Thu, 01 Feb 2007 21:14:24 +0000 |
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?
Thanks,
Ian
_________________________________________________________________
Have you tried Windows Live Spaces? Tell us what you think!
https://www.msnfeedback.com/perseus/surveys/961278308/6653c632.htm
- [Chicken-users] Compiling a file into both .dll and .o,
Ian Oversby <=