Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 19 Jan 2003 14:42:02 +0100
From:      "Ivan Voras" <ivoras@fer.hr>
To:        <freebsd-stable@FreeBSD.ORG>
Subject:   gcc -kthread
Message-ID:  <000b01c2bfc0$8ed86e90$e602a8c0@shara.net>

next in thread | raw e-mail | index | archive | help
gcc man page mentions two threading options: -pthread and -kthread. I needed
to write a simple multithreaded program, and since it seems that -kthread
would be a much better choice, I tried using it. But gcc complains that it
doesn't know about such option:

> gcc test.cpp -kthread
gcc: unrecognized option `-kthread'
[... many unresolved symbols ...]
> which gcc
/usr/bin/gcc
> uname -v
FreeBSD 4.7-STABLE #4: Tue Dec  3 20:27:14 CET 2002 ...

It works fine with -pthread.

Another question: are -pthread and -kthread interchangeable regarding to
compile&link process?

--
Do not meddle in the affairs of sysadmins, for they can make your life
miserable by doing nothing.


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?000b01c2bfc0$8ed86e90$e602a8c0>