Hi: Tackling the windows challenge again, I finally got MinGw working but I get a permission denied result on the executable. I must have missed something. Suggestions are welcome.
-Bob-
MinGW and Cygwin give the same result:-
;; -*- Scheme -*-
(define (main) (display "hello world\n")) (main) (display "\n..bye..\n") (exit)
brownie@epia ~ $ ./world.exe bash: ./world.exe: Permission denied
brownie@epia ~ $ ls -lga world* -rw-r--r-- 1 None 3826 Jan 14 22:40 world.c -rwxrwxrwx 1 None 3745443 Jan 14 22:40 world.exe -rwxrwxrwx 1 None 228 Jan 14 18:17 world.scm -rw-r--r-- 1 None 396999 Jan 14 22:40 world_.c
## Makefile GAMDIR = /usr/local/Gambit-C/v4.1.2 HDR = $(GAMDIR)/include GLIB = $(GAMDIR)/lib GLINKS = -lgambc -lm -lws2_32 # -luser32 -lkernel32 -lgdi32
MSYS = -Wall -W -Wno-unused -O1 -fno-math-errno -fschedule-insns2 \ -fno-trapping-math -fno-strict-aliasing -fwrapv -fno-common \ -mieee-fp -shared -D___DYNAMIC -D_WINDOWS
CYGWIN = -Wall -W -Wno-unused -O1 -fno-math-errno -fschedule-insns2 \ -fno-trapping-math -fno-strict-aliasing -fwrapv \ -fomit-frame-pointer -fno-common -mieee-fp -shared \ -D___DYNAMIC -D___SINGLE_HOST
all: gsc -link world gcc -I$(HDR) $(CYGWIN) -L$(GLIB) world.c world_.c $(GLINKS) \ -o world