[Top][All Lists]

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

[Chicken-users] Chicken fails to build on Windows (mingw)

From: Fadi Moukayed
Subject: [Chicken-users] Chicken fails to build on Windows (mingw)
Date: Sun, 23 Aug 2009 20:41:07 +0200


Currently, the build aborts with the following error:

gcc -Wl,--enable-auto-import -shared -Wl,--out-implib,libchicken.dll.a \
          -o libchicken.dll library.o eval.o data-structures.o ports.o files.o e
xtras.o lolevel.o utils.o tcp.o srfi-1.o srfi-4.o srfi-13.o srfi-14.o srfi-18.o
srfi-69.o posixwin.o regex.o scheduler.o profiler.o stub.o expand.o chicken-synt
ax.o runtime.o apply-hack.x86.o -lm -lws2_32
Creating library file: libchicken.dll.a
extras.o:extras.c:(.text+0x75bb): undefined reference to `srandom'
extras.o:extras.c:(.text+0x7c39): undefined reference to `random'
collect2: ld returned 1 exit status
mingw32-make[1]: *** [libchicken.dll] Error 1

This happens on the latest devel. snapshot (4.1.4), but 4.1.0 fails to
build as well with the same error. I'm using mingw 4.4.1 (Without

Out of curiosity, why is Chicken using these functions instead of the
standard C rand/srand ? There shouldn't be any difference
functionality-wise AFAIK.


reply via email to

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