From owner-freebsd-stable Sun Jan 19 5:42:12 2003 Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 94C7337B401 for ; Sun, 19 Jan 2003 05:42:11 -0800 (PST) Received: from mail.iskon.hr (inje.iskon.hr [213.191.128.16]) by mx1.FreeBSD.org (Postfix) with SMTP id 0B06043F79 for ; Sun, 19 Jan 2003 05:42:10 -0800 (PST) (envelope-from ivoras@fer.hr) Received: (qmail 29928 invoked from network); 19 Jan 2003 14:41:54 +0100 Received: from unknown (HELO flatline) (213.191.147.30) by mail.iskon.hr with SMTP; 19 Jan 2003 14:41:54 +0100 Message-ID: <000b01c2bfc0$8ed86e90$e602a8c0@shara.net> From: "Ivan Voras" To: Subject: gcc -kthread Date: Sun, 19 Jan 2003 14:42:02 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-2" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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