GNOME Bugzilla – Bug 316162
MinGW compilation: Undefined reference to sleep
Last modified: 2005-09-13 13:53:19 UTC
gst/playback/test4.c calls function sleep (from unistd.h) but unistd.h in MinGW does not define this function. To solve this g_usleep can be used for larger portability.
Should be fixed in CVS: 2005-09-13 Tim-Philipp Müller <tim at centricular dot net> * gst/audioconvert/Makefile.am: Audioconvert derives from GstBaseTransform and should link to the library with our base elements to avoid unresolved symbols. Makes things work with MinGW (#316160) * gst/playback/test4.c: (main): Fix MinGW build problem and use g_usleep() instead of sleep() (#316162) Cheers -Tim