All of lore.kernel.org
 help / color / mirror / Atom feed
* Compiling libdevmapper based application using C++
@ 2007-05-23  3:30 Xyber Blue
  2007-05-23 18:33 ` Bryn M. Reeves
  0 siblings, 1 reply; 3+ messages in thread
From: Xyber Blue @ 2007-05-23  3:30 UTC (permalink / raw)
  To: dm-devel

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
-- 
If you want to become somebody
Display your best ability

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Compiling libdevmapper based application using C++
  2007-05-23  3:30 Compiling libdevmapper based application using C++ Xyber Blue
@ 2007-05-23 18:33 ` Bryn M. Reeves
  2007-05-24  0:35   ` Xyber Blue
  0 siblings, 1 reply; 3+ messages in thread
From: Bryn M. Reeves @ 2007-05-23 18:33 UTC (permalink / raw)
  To: device-mapper development

-----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-----

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Compiling libdevmapper based application using C++
  2007-05-23 18:33 ` Bryn M. Reeves
@ 2007-05-24  0:35   ` Xyber Blue
  0 siblings, 0 replies; 3+ messages in thread
From: Xyber Blue @ 2007-05-24  0:35 UTC (permalink / raw)
  To: device-mapper development

Bryn,

Thanks man, it really works. Now I know that's the use of extern C.

Thanks again,
Ervin

On 5/24/07, Bryn M. Reeves <breeves@redhat.com> wrote:
> -----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-----
>
> --
> dm-devel mailing list
> dm-devel@redhat.com
> https://www.redhat.com/mailman/listinfo/dm-devel
>


-- 
If you want to become somebody
Display your best ability

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-05-24  0:35 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-23  3:30 Compiling libdevmapper based application using C++ Xyber Blue
2007-05-23 18:33 ` Bryn M. Reeves
2007-05-24  0:35   ` Xyber Blue

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.