[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Chicken-users] Compiling under MSVC
From: |
felix winkelmann |
Subject: |
Re: [Chicken-users] Compiling under MSVC |
Date: |
Mon, 17 Nov 2008 10:22:41 +0100 |
On Fri, Nov 14, 2008 at 11:03 AM, Brown Dragon
<address@hidden> wrote:
> Hello,
>
> I am trying to compile chicken-3.4.0 under MSVC (2003) but am running
> into problems.
>
Hi!
I think this patch might fix the problem:
Index: c-backend.scm
===================================================================
--- c-backend.scm (revision 12494)
+++ c-backend.scm (working copy)
@@ -923,7 +923,7 @@
((null? ll)
(gen #t "{NULL,NULL}};") )
(let ((id (lambda-literal-id (car ll))))
- (gen #t "{\"" id sf "\",(void*)")
+ (gen #t "{\"" id #\: (string->c-identifier sf) "\",(void*)")
(if (eq? 'toplevel id)
(if unit-name
(gen "C_" unit-name "_toplevel},")
Getting this to work will require a working chicken. You will have to
fetch an older chicken tarball and build a "chicken" executable that
you can the use to compile the 3.4.0 sources with the given
patch (sorry for the hassle, but this is how it is with bootstrapped
compilers...).
cheers,
felix