------- Comment #1 from pinskia at gcc dot gnu dot org 2006-01-24 00:59 ------- I bet -lrt has to be linked in as sem_* are part of the real time extensions of POSIX. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25936