users-prolog
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Diff in gplc on Mac OS X and Linux (kernel 3.5)


From: daveti
Subject: Diff in gplc on Mac OS X and Linux (kernel 3.5)
Date: Mon, 2 Dec 2013 17:23:23 -0800 (PST)

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~
address@hidden:~/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
address@hidden:~/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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]