From: David Erman <david.erman@home.se>
To: syedk <syedk@intotoinc.com>
Cc: linux-c-programming@vger.kernel.org
Subject: Re: compiling programs which use pthreads
Date: Sun, 25 Jan 2004 10:23:26 +0100 [thread overview]
Message-ID: <40138B0E.8060406@home.se> (raw)
In-Reply-To: <1075023389.27269.12.camel@qa.intotoind.com>
You need to link with -lpthread. I.e.
gcc foo.c -lpthread
syedk wrote:
> Hi all,
> I am getting strange results while compiling programs which use
> pthreads.
> I am working on a RedHat Linux on a 2.4 kernel.
> to start with i wrote a simple program as follows:
>
/ Dave
next prev parent reply other threads:[~2004-01-25 9:23 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-01-25 9:36 compiling programs which use pthreads syedk
2004-01-25 9:23 ` David Erman [this message]
2004-01-25 9:44 ` Cesar Rincon
2004-01-25 9:56 ` Jan-Benedict Glaw
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=40138B0E.8060406@home.se \
--to=david.erman@home.se \
--cc=linux-c-programming@vger.kernel.org \
--cc=syedk@intotoinc.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).