Hi there, I may run into a weird issue related with gplc compiler. The command line below works well for Mac OS X but fails in Linux (failing in linking...)
gplc --c-compiler gcc -L '-lpthread' -o gqicwt gqicwt.pl gqicwt.c I bet the usage of gplc is right but.... Thanks, Dave Linux~ root@arpsec01:~/cgpic/master/gqicwt# gplc --c-compiler gcc -L '-lpthread' -o gqicwt gqicwt.pl gqicwt.c gqicwt.c: In function 'main': gqicwt.c:102:2: warning: passing argument 3 of 'pthread_create' from incompatible pointer type [enabled by default] /usr/include/pthread.h:225:12: note: expected 'void * (*)(void *)' but argument is of type 'void (*)(void *)' /tmp/gplcNfnaJh.o: In function `main': gqicwt.c:(.text+0x284): undefined reference to `pthread_create' gqicwt.c:(.text+0x2d8): undefined reference to `pthread_join' collect2: ld returned 1 exit status compilation failed root@arpsec01:~/cgpic/master/gqicwt# -- View this message in context: http://gnu-prolog.996310.n3.nabble.com/Diff-in-gplc-on-Mac-OS-X-and-Linux-kernel-3-5-tp1186.html Sent from the Users mailing list archive at Nabble.com. _______________________________________________ Users-prolog mailing list [email protected] https://lists.gnu.org/mailman/listinfo/users-prolog
