linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
From: Bryan Whitehead <driver@megahappy.net>
To: LVM general discussion and development <linux-lvm@redhat.com>
Subject: Re: [linux-lvm] problem #including <lvm2ap.h> using cvs
Date: Sun, 13 Jun 2010 15:25:20 -0700	[thread overview]
Message-ID: <AANLkTimOFnUC_-GxoEjc_jA-qWbjtTma6pGNCxGywcG0@mail.gmail.com> (raw)
In-Reply-To: <201006121643.03778.benscott@nwlink.com>

Are you using g++ instead of gcc to compile? The code block I'm
looking at looks like C code, but that error is C++.

On Sat, Jun 12, 2010 at 4:43 PM, ben scott <benscott@nwlink.com> wrote:
> I want to start putting the lvm library in my app but have run into a snag.
> When I put the line:
>
> #include <lvm2app.h>
>
> in my program, I get the following error:
>
> �In file included from /usr/include/lvm2app.h:17,
>
> /usr/include/libdevmapper.h:1025: error: expected �,� or �...� before
> �private�
> /usr/include/libdevmapper.h:1047: error: expected �,� or �...� before
> �private�
>
> The relevant portion of libdevmapper.h look like this:
>
> struct dm_report_field_type {
> � � � �uint32_t type; � � � � �/* object type id */
> � � � �uint32_t flags; � � � � /* DM_REPORT_FIELD_* */
> � � � �uint32_t offset; � � � �/* byte offset in the object */
> � � � �int32_t width; � � � � �/* default width */
> � � � �const char id[32]; � � �/* string used to specify the field */
> � � � �const char heading[32]; /* string printed in header */
> � � � �int (*report_fn)(struct dm_report *rh, struct dm_pool *mem,
> � � � � � � � � � � � � struct dm_report_field *field, const void *data,
> � � � � � � � � � � � � void *private);
> � � � �const char *desc; � � � /* description of the field */
> };
>
>
> I am running Debian unstable in 64 bits. Any Idea what I am doing wrong here?
>
> Thank you.
>
> _______________________________________________
> linux-lvm mailing list
> linux-lvm@redhat.com
> https://www.redhat.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

      parent reply	other threads:[~2010-06-13 22:25 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-12 23:43 [linux-lvm] problem #including <lvm2ap.h> using cvs ben scott
2010-06-13 21:54 ` Alasdair G Kergon
2010-06-13 22:58   ` ben scott
2010-06-13 22:25 ` Bryan Whitehead [this message]

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=AANLkTimOFnUC_-GxoEjc_jA-qWbjtTma6pGNCxGywcG0@mail.gmail.com \
    --to=driver@megahappy.net \
    --cc=linux-lvm@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 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).