Hi:
Since Gambit prebuild with mingw is easy to install and DevCpp from http://www.bloodshed.net/devcpp.html , which embeds gcc 3.4.2 is also easy, would it be possible to combine them with the goal of easing setup for the mingw-challenged such as yours truly? And I should ask if this is feasible or a hopeless hack?
The experiment below almost worked but it needs to satisfy Gambit's os.c which is looking for htonl and other winsock functions. These are found in libwsock32.a
-Bob-
# Project: Test1 # Makefile created for Dev-C++ 4.9.9.2
CC = gcc.exe CFLAGS = -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___SINGLE_HOST
LIBS = -L"C:/Dev-Cpp/lib" -L"c:/Gambit-C/v4.1.2/lib" INCS = -I"C:/Dev-Cpp/include" -I"c:/Gambit-C/v4.1.2/include" EXE = Test1.exe
.PHONY: all all: $(EXE)
$(EXE): $(CC) $(CFLAGS) $(INCS) test.c test_.c $(LIBS) \ -lwsock32 -lgambc -o $(EXE)
# test.scm just displays hello world. it works with gsi
----- result ---- cd c:/Dev-Cpp/home/test/ make gcc.exe -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___SINGLE_HOST -I"C:/Dev-Cpp/include" -I"c:/Gambit-C/v4.1.2/include" test.c test_.c -L"C:/Dev-Cpp/lib" -L"c:/Gambit-C/v4.1.2/lib" \ -lwsock32 -lgambc -o Test1.exe c:/Gambit-C/v4.1.2/lib/libgambc.a(os.o)(.text+0x5f):os.c: undefined reference to `htonl@4' c:/Gambit-C/v4.1.2/lib/libgambc.a(os.o)(.text+0xdd):os.c: undefined reference to `ntohl@4' c:/Gambit-C/v4.1.2/lib/libgambc.a(os.o)(.text+0x22d):os.c: undefined reference to `htons@4' ... ...