Hello It seems that both programs should #include <endian.h>. If not, the following code can cause problem as it becomes always true. #if __BYTE_ORDER == __BIG_ENDIAN ... Regards, Heechul. =========== Heechul Yun Digital Media Research Center Samsung Electronics Tel: +82-31-200-9334