libqmi under c++

Aleksander Morgado aleksander at aleksander.es
Sun Aug 30 23:31:18 PDT 2015


On Mon, Aug 31, 2015 at 6:00 AM, tom <tomschuring at gmail.com> wrote:
> has anyone used libqmi under c++ instead of c ?
>
> when including libqmi-glib.h i receive two
>
> /usr/include/libqmi-glib/qmi-dms.h:2356:19: error: expected ',' or '...'
> before 'new'
>      const gchar **new,
>                    ^
> /usr/include/libqmi-glib/qmi-dms.h:2361:18: error: expected ',' or '...'
> before 'new'
>      const gchar *new,
>
> errors.
>
> is this expected under c++ ?

Yeah, bad choice of variable name, the error is expected under C++.

Patches to avoid that are welcome.

-- 
Aleksander
https://aleksander.es


More information about the libqmi-devel mailing list