linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Dennis Lan (dlan)" <dennis.yxun@gmail.com>
To: Wang Shilong <wangsl.fnst@cn.fujitsu.com>
Cc: linux-btrfs@vger.kernel.org
Subject: btrfs-progs: add arg_strtou64 break library btrfs
Date: Tue, 20 May 2014 18:15:49 +0800	[thread overview]
Message-ID: <CAF1ZMEfRCrnNU9HNUZwm2V154Z1f639m6ctFMKVbi3dRQw2cVQ@mail.gmail.com> (raw)

progs # cat btrfs_mini_tst.c
 /*
  * gcc -o btrfs_mini_tst btrfs_mini_tst.c -lbtrfs
  */

  char btrfs_read_and_process_send_stream ();
 int
 main ()
 {
 return btrfs_read_and_process_send_stream ();
 }

progs # gcc -o btrfs_mini_tst btrfs_mini_tst.c -lbtrfs
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.2/../../../../lib64/libbtrfs.so:
undefined reference to `arg_strtou64'
collect2: error: ld returned 1 exit status


but if I also add file utils.c into libbtrfs, more undefined error occurs.

             reply	other threads:[~2014-05-20 10:15 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-20 10:15 Dennis Lan (dlan) [this message]
2014-05-20 10:20 ` btrfs-progs: add arg_strtou64 break library btrfs Arvin Schnell
2014-05-20 10:28   ` Dennis Lan (dlan)

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=CAF1ZMEfRCrnNU9HNUZwm2V154Z1f639m6ctFMKVbi3dRQw2cVQ@mail.gmail.com \
    --to=dennis.yxun@gmail.com \
    --cc=linux-btrfs@vger.kernel.org \
    --cc=wangsl.fnst@cn.fujitsu.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).