I'm trying to use my code on a SGI Origin machine (IRIX64) and I am getting some compiling errors. I ran my program on another Linux machine and there were no errors.
Here is my error message:
For the warning I don't know why this happens as elim_fcn is of type: void *elim_fcn(t_param *t).Code:cc-1164 cc: WARNING File = main-pthread.c, Line = 143 Argument of type "void *" is incompatible with parameter of type "void *(*)(void *)". if (pthread_create(&threads[j], NULL, (void *)elim_fcn, (void *)¶m[j])) ^ ld32: WARNING 84 : /usr/lib32/libpthread.so is not used for resolving any symbol. ld32: WARNING 84 : /usr/lib32/mips4/libm.so is not used for resolving any symbol. ld32: ERROR 33 : Unresolved text symbol "pthread_join" -- 1st referenced by main-pthread.o. Use linker option -v to see when and which objects, archives and dsos are loaded. ld32: INFO 152: Output file removed because of error.
As for the error I compile the program with: cc -lpthread -lm main-pthread.c Why isn't the -lpthread resolving the pthread_join?