[Gc] Newbie questions

Lloyd Sargent lloyd at s-squared-ranch.com
Thu Sep 24 06:33:51 PDT 2009

Hey folks, 30 year veteran here and the documentation is so confusing.

1) First, what IS the license for GC for Windows and Linux? MIT, BSD,  
or GPL? If it is GPL I can't use it.

2) Assuming that the license is unrestrictive, can you build GC for  
Ming on 32 bit machine? If so, what is the recommended procedure. It  
is alluded to, but never explained.

3) Trying to build 7.1 with Mingw and I get:

/bin/sh ./libtool --tag=CC --mode=link gcc -fexceptions -I  
libatomic_ops/src -g -O2   -o libgc.la -rpath /usr/local/lib  -version- 
info 1:3:0 -no-undefined allchblk.lo alloc.lo blacklst.lo checksums.lo  
dbg_mlc.lo dyn_load.lo finalize.lo gc_dlopen.lo gcj_mlc.lo headers.lo  
malloc.lo mallocx.lo mark.lo mark_rts.lo misc.lo new_hblk.lo  
obj_map.lo os_dep.lo pcr_interface.lo ptr_chck.lo real_malloc.lo  
reclaim.lo specific.lo stubborn.lo typd_mlc.lo backgraph.lo  
thread_local_alloc.lo    ./atomic_ops.lo mach_dep.lo
gcc -shared  .libs/allchblk.o .libs/alloc.o .libs/blacklst.o .libs/ 
checksums.o .libs/dbg_mlc.o .libs/dyn_load.o .libs/finalize.o .libs/ 
gc_dlopen.o .libs/gcj_mlc.o .libs/headers.o .libs/malloc.o .libs/ 
mallocx.o .libs/mark.o .libs/mark_rts.o .libs/misc.o .libs/ 
new_hblk.o .libs/obj_map.o .libs/os_dep.o .libs/pcr_interface.o .libs/ 
ptr_chck.o .libs/real_malloc.o .libs/reclaim.o .libs/specific.o .libs/ 
stubborn.o .libs/typd_mlc.o .libs/backgraph.o .libs/ 
thread_local_alloc.o ./.libs/atomic_ops.o .libs/mach_dep.o   -o .libs/ 
libgc-1.dll -Wl,--enable-auto-image-base -Xlinker --out-implib - 
Xlinker .libs/libgc.dll.a
.libs/alloc.o: In function `GC_stopped_mark':
C:/msys/1.0/home/lloyd/gc/alloc.c:474: undefined reference to  
C:/msys/1.0/home/lloyd/gc/alloc.c:501: undefined reference to  
C:/msys/1.0/home/lloyd/gc/alloc.c:525: undefined reference to  
.libs/alloc.o: In function `GC_collect_a_little':
(etc, etc)

4) This was configured with the following:

  ./configure --enable-cplusplus --enable-threads=win32

using MSYS

If this is NOT the correct way of doing things, would you please  



More information about the Gc mailing list