Hi,guys:
I want to modifed the vlc for connecting a streaming server. And I have change the file called "livedotcom.cpp". I called the function pthread_create therefor I add the code #include <pthread.h> in the livedotcom.cpp; However, when I compile the vlc in cygwin, error occurs:
......
......
Making all in ffmpeg
Making all in spudec
Making all in control
Making all in http
Making all in corba
Making all in demux
livedotcom.cpp:49:21: pthread.h: No such file or directory
livedotcom.cpp:201: error: `pthread_t' does not name a type
livedotcom.cpp: In function `int Open(vlc_object_t*)':
livedotcom.cpp:307: warning: unused variable 'psz_options'
livedotcom.cpp:493: error: `p_getparam' undeclared (first use this function)
livedotcom.cpp:493: error: (Each undeclared identifier is reported only once for
each function it appears in.)
livedotcom.cpp:493: error: `pthread_create' undeclared (first use this function)
livedotcom.cpp: In function `void* GetParam(void*)':
livedotcom.cpp:807: error: `sleep' undeclared (first use this function)
livedotcom.cpp:810: warning: no return statement in function returning non-void
livedotcom.cpp: In function `void Close(vlc_object_t*)':
livedotcom.cpp:840: error: `p_getparam' undeclared (first use this function)
livedotcom.cpp:840: error: `pthread_cancel' undeclared (first use this function)
livedotcom.cpp: In function `int Demux(demux_t*)':
livedotcom.cpp:879: warning: unused variable 'psz_bye'
livedotcom.cpp: At global scope:
livedotcom.cpp:1457: warning: 'void TimeoutPrevention(timeout_thread_t*)' define
d but not used
make[4]: *** [liblivedotcom_a-livedotcom.o] Error 1
make[3]: *** [all-modules] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
Anybody can give some suggestion about it? Or do I change other function to create thread in Cygwin?
Thanks a lot!!!