prompt> g++ -I /usr/local/root/include -I /usr/local/Mathematica5.2/AddOns/MathLink/DeveloperKit/Linux/CompilerAdditions rootMathematica.cxx MathFun.cxx MathematicaFunctions.cxx /usr/local/Mathematica5.2/AddOns/MathLink/DeveloperKit/Linux/CompilerAdditions/libML.a -o rootMathematica -L /usr/local/root/lib -lCore -lCint -lGraf -lGraf3d -lHist -lHtml -lMatrix -lMinuit -lPostscript -lTree -lGpad -lGui -lGX11 -lRint /usr/local/Mathematica5.2/AddOns/MathLink/DeveloperKit/Linux/CompilerAdditions/libML.a(mlthread.o): In function `MLThreadCreate': mlthread.c:(.text+0x16d): undefined reference to `pthread_create' /usr/local/Mathematica5.2/AddOns/MathLink/DeveloperKit/Linux/CompilerAdditions/libML.a(mlthread.o): In function `MLThreadJoin': mlthread.c:(.text+0x1cf): undefined reference to `pthread_join' /usr/local/Mathematica5.2/AddOns/MathLink/DeveloperKit/Linux/CompilerAdditions/libML.a(mlthread.o): In function `semaphore_create_mutex': mlthread.c:(.text+0x6f5): undefined reference to `sem_init' mlthread.c:(.text+0x74e): undefined reference to `sem_open' /usr/local/Mathematica5.2/AddOns/MathLink/DeveloperKit/Linux/CompilerAdditions/libML.a(mlthread.o): In function `semaphore_destroy_mutex': mlthread.c:(.text+0x8f6): undefined reference to `sem_destroy' mlthread.c:(.text+0x906): undefined reference to `sem_close' mlthread.c:(.text+0x90f): undefined reference to `sem_unlink' /usr/local/Mathematica5.2/AddOns/MathLink/DeveloperKit/Linux/CompilerAdditions/libML.a(mlthread.o): In function `semaphore_lock_mutex': mlthread.c:(.text+0x942): undefined reference to `sem_wait' /usr/local/Mathematica5.2/AddOns/MathLink/DeveloperKit/Linux/CompilerAdditions/libML.a(mlthread.o): In function `semaphore_unlock_mutex': mlthread.c:(.text+0x995): undefined reference to `sem_post' /usr/local/Mathematica5.2/AddOns/MathLink/DeveloperKit/Linux/CompilerAdditions/libML.a(mlthread.o): In function `semaphore_create_condition': mlthread.c:(.text+0x22de): undefined reference to `sem_trywait' mlthread.c:(.text+0x2319): undefined reference to `sem_init' mlthread.c:(.text+0x2368): undefined reference to `sem_open' /usr/local/Mathematica5.2/AddOns/MathLink/DeveloperKit/Linux/CompilerAdditions/libML.a(mlthread.o): In function `semaphore_destroy_condition': mlthread.c:(.text+0x2531): undefined reference to `sem_destroy' mlthread.c:(.text+0x254c): undefined reference to `sem_close' mlthread.c:(.text+0x2555): undefined reference to `sem_unlink' /usr/local/Mathematica5.2/AddOns/MathLink/DeveloperKit/Linux/CompilerAdditions/libML.a(mlthread.o): In function `semaphore_wait_condition': mlthread.c:(.text+0x25a1): undefined reference to `sem_trywait' mlthread.c:(.text+0x25ef): undefined reference to `sem_wait' /usr/local/Mathematica5.2/AddOns/MathLink/DeveloperKit/Linux/CompilerAdditions/libML.a(mlthread.o): In function `semaphore_signal_condition': mlthread.c:(.text+0x2635): undefined reference to `sem_post' collect2: ld returned 1 exit status