Daemon News Ezine | BSD News | BSD Mall | BSD Support Forum | BSD Advocacy | BSD Updates |
On Fri, Dec 20, 2002 at 02:34:45AM +0100, Emiel Kollof wrote: > When I compile it, I get the following errors: > > % gcc test.c -o test.c > /tmp/ccF3QI1k.o: In function `PrintHello': > /tmp/ccF3QI1k.o(.text+0x20): undefined reference to `pthread_exit' > /tmp/ccF3QI1k.o: In function `main': > /tmp/ccF3QI1k.o(.text+0x76): undefined reference to `pthread_create' > /tmp/ccF3QI1k.o(.text+0xba): undefined reference to `pthread_exit' > > It compiles fine when I use -lc_r. This also breaks a lot of ports. What's > going on? Use the -pthread arguement for gcc. Victor
Attachment:
pgpZ86T0zW0wq.pgp
Description: PGP signature