7
で失敗私は-std = c99をGCCのコンパイルがpthreadのとオプションのstd = c99を
で任意のヘルプのコンパイルに失敗した模範プログラムを持って読み書きロックが非標準で
#include <pthread.h>
int main(void) {
pthread_rwlock_t myLock;
return 0;
}
output of the two compiles:
gcc pthread_test.c
[[email protected] src]$ gcc pthread_test.c
[[email protected] src]$
gcc -std=c99 pthread_test.c[[email protected] src]$ gcc -std=c99 pthread_test.c
pthread_test.c: In function ‘main’:
pthread_test.c:5:2: error: unknown type name ‘pthread_rwlock_t’
[[email protected] src]$
'-std = gnu99'についてはどうですか? –