Re: [Chicken-users] Duplicate symbol errors with functors and -static flag

2018-11-20 Thread Antoine Luciani
On Nov 20, 2018, at 6:59 PM, Evan Hanson wrote: > > Hi Antoine, > > The issue here is the "./" prefix on $(SCHEME_OBJECTS). Your project > works fine with just the following change: > >3c3 >< SOURCE_PREFIX = ./ >--- > SOURCE_PREFIX = > > CHICKEN uses a naive string comparison to

Re: [Chicken-users] Duplicate symbol errors with functors and -static flag

2018-11-20 Thread Evan Hanson
Hi Antoine, The issue here is the "./" prefix on $(SCHEME_OBJECTS). Your project works fine with just the following change: 3c3 < SOURCE_PREFIX = ./ --- > SOURCE_PREFIX = CHICKEN uses a naive string comparison to deduplicate object files, so "./a.o" and "a.o" are considered to