All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Bryn M. Reeves" <breeves@redhat.com>
To: device-mapper development <dm-devel@redhat.com>
Subject: Re: Compiling libdevmapper based application using C++
Date: Wed, 23 May 2007 19:33:25 +0100	[thread overview]
Message-ID: <465488F5.4030405@redhat.com> (raw)
In-Reply-To: <45ea3f390705222030s65989947ta35b136a90451b57@mail.gmail.com>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Xyber Blue wrote:
> Hello people,
> 
> I hope someone have had done this one. I am developing application
> that uses libdevmapper for accesing kernel based device mapper. Im
> having problem compiling my program which is coded using C++ and it
> seems that it can't link to libdevmapper libraries.
> 
> Did someone experienced this one? It would be very much help if
> someone here can give me some tips on compiling my libdevmapper based
> application using C++.
> 
> Thanks,
> xyber

You'll need to wrap the libdevmapper.h include in the usual extern "C"
block like this:

extern "C" {
	#include "libdevmapper.h"
}

But beyond that I don't know of any specific problems and you didn't
describe what actually goes wrong so it's hard to make a more definite
suggestion.

Kind regards,
Bryn.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iD8DBQFGVIj16YSQoMYUY94RAimxAJ9v51hfQ7xh4+NTQTp30sAXu+MvvQCg1U8W
u+qfat5tIIto+/jwP8cAaWQ=
=8nrT
-----END PGP SIGNATURE-----

  reply	other threads:[~2007-05-23 18:33 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-05-23  3:30 Compiling libdevmapper based application using C++ Xyber Blue
2007-05-23 18:33 ` Bryn M. Reeves [this message]
2007-05-24  0:35   ` Xyber Blue

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=465488F5.4030405@redhat.com \
    --to=breeves@redhat.com \
    --cc=dm-devel@redhat.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.