From: "John Zhou" <zjzhou@newrocktech.com>
To: <linuxppc-dev@lists.linuxppc.org>
Subject: how to link a posix function
Date: Thu, 12 Feb 2004 17:12:30 +0800 [thread overview]
Message-ID: <000b01c3f148$585a2d30$b702a8c0@newrock2> (raw)
In-Reply-To: <20040212060756.GG2200@adapter.n0skillz.org>
Hi,
I wrote a program that used some POSIX function such as timer_create(),
timer_settime(), timer_delete(). But, it is report "undefined reference
to 'timer_create', etc.." when linking.
my question is: how to link with POSIX lib?
I know I must add "-lpthread" flag in Makefile when linking
pthread_create() function.
Best Regards,
John
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
next prev parent reply other threads:[~2004-02-12 9:12 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-02-09 17:48 ibook G4 Status Report Costantino Pistagna
2004-02-09 21:10 ` Benjamin Herrenschmidt
2004-02-11 16:44 ` Costantino Pistagna
2004-02-11 19:10 ` Costantino Pistagna
2004-02-11 22:18 ` Benjamin Herrenschmidt
2004-02-12 6:07 ` Costantino Pistagna
2004-02-12 9:12 ` John Zhou [this message]
2004-02-09 21:13 ` Brad Boyer
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='000b01c3f148$585a2d30$b702a8c0@newrock2' \
--to=zjzhou@newrocktech.com \
--cc=linuxppc-dev@lists.linuxppc.org \
/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).