In file included from 0_0_10783969_12606.cpp:1:
GCC/bin/../lib/gcc/mingw32/3.4.2/../../../../include/unistd.h:10:16: io.h: No such file or directory
GCC/bin/../lib/gcc/mingw32/3.4.2/../../../../include/unistd.h:11:21: process.h: No such file or directory
In file included from 0_0_10783969_12606.cpp:1:
GCC/bin/../lib/gcc/mingw32/3.4.2/../../../../include/unistd.h:37: error: `off_t' has not been declared
GCC/bin/../lib/gcc/mingw32/3.4.2/../../../../include/unistd.h:38: error: expected constructor, destructor, or type conversion before "int"
GCC/bin/../lib/gcc/mingw32/3.4.2/../../../../include/unistd.h:38: error: expected `,' or `;' before "int"
0_0_10783969_12606.cpp:4:21: pthread.h: No such file or directory
0_0_10783969_12606.cpp:5:23: semaphore.h: No such file or directory
0_0_10783969_12606.cpp:7:21: windows.h: No such file or directory
0_0_10783969_12606.cpp:8:17: dos.h: No such file or directory
0_0_10783969_12606.cpp:18: error: `sem_t' does not name a type
0_0_10783969_12606.cpp:19: error: `sem_t' does not name a type
0_0_10783969_12606.cpp:20: error: `pthread_mutex_t' does not name a type
0_0_10783969_12606.cpp: In function `void* product()':
0_0_10783969_12606.cpp:37: error: `empty_sem' undeclared (first use this function)
0_0_10783969_12606.cpp:37: error: (Each undeclared identifier is reported only once for each function it appears in.)
0_0_10783969_12606.cpp:37: error: `sem_wait' undeclared (first use this function)
0_0_10783969_12606.cpp:38: error: `mutex' undeclared (first use this function)
0_0_10783969_12606.cpp:38: error: `pthread_mutex_lock' undeclared (first use this function)
0_0_10783969_12606.cpp:45: error: `pthread_mutex_unlock' undeclared (first use this function)
0_0_10783969_12606.cpp:46: error: `full_sem' undeclared (first use this function)
0_0_10783969_12606.cpp:46: error: `sem_post' undeclared (first use this function)
0_0_10783969_12606.cpp: In function `void* purchase()':
0_0_10783969_12606.cpp:54: error: `full_sem' undeclared (first use this function)
0_0_10783969_12606.cpp:54: error: `sem_wait' undeclared (first use this function)
0_0_10783969_12606.cpp:55: error: `mutex' undeclared (first use this function)
0_0_10783969_12606.cpp:55: error: `pthread_mutex_lock' undeclared (first use this function)
0_0_10783969_12606.cpp:62: error: `pthread_mutex_unlock' undeclared (first use this function)
0_0_10783969_12606.cpp:63: error: `empty_sem' undeclared (first use this function)
0_0_10783969_12606.cpp:63: error: `sem_post' undeclared (first use this function)
0_0_10783969_12606.cpp: In function `int main()':
0_0_10783969_12606.cpp:68: error: `pthread_t' undeclared (first use this function)
0_0_10783969_12606.cpp:68: error: expected `;' before "pro"
0_0_10783969_12606.cpp:69: error: expected `;' before "pur"
0_0_10783969_12606.cpp:70: error: `empty_sem' undeclared (first use this function)
0_0_10783969_12606.cpp:70: error: `sem_init' undeclared (first use this function)
0_0_10783969_12606.cpp:70: error: `full_sem' undeclared (first use this function)
0_0_10783969_12606.cpp:70: error: `mutex' undeclared (first use this function)
0_0_10783969_12606.cpp:70: error: `pthread_mutex_init' undeclared (first use this function)
0_0_10783969_12606.cpp:80: error: `pro' undeclared (first use this function)
0_0_10783969_12606.cpp:80: error: `pthread_create' undeclared (first use this function)
0_0_10783969_12606.cpp:87: error: `pur' undeclared (first use this function)
0_0_10783969_12606.cpp:94: error: `pthread_join' undeclared (first use this function)
|