#include <stdio.h>#include <pthread.h> void* func(void *data) { printf("kita------\n"); return (void *) NULL;} int main() { pthread_t th; //printf("テスト\n"); // ここを有効にすると下のでないおがでるお!!! pthread_create(&th, NULL, &func, NULL); pthread_join(th, NULL); printf("ここでないお?!\n"); return 0;}
Standard input is empty
/home/3OjKU8/cczonwJi.o: In function `main': prog.c:(.text+0x41): undefined reference to `pthread_create' prog.c:(.text+0x55): undefined reference to `pthread_join' collect2: error: ld returned 1 exit status
Standard output is empty
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!