On Tue, 21 Jun 2011, Dennis Clarke wrote: > -mtune=i386 -march=i386 [...] > Undefined first referenced > symbol in file > __sync_fetch_and_add_4 t-assign.o A classic. You need to replace -march=i386 with something more recent. Blame it on gcc if you must. -- Marc Glisse