GObject Introspection problems



I'm introducing GObject Introspection y two libraries GDA and my own project libcash[http://sourceforge.net/projects/libcash/], but when compiling to generate gir and typedef files I get this errors messages.

The lines at csh-account are the following:

line 1:

/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 4; tab-width: 4 -*- */


line 102:

    case PROP_OPERATIONS:
        priv->operations = g_value_get_object (value);
        break;
    case PROP_TRANSACTIONS:
        {
102>            priv->transactions = g_value_get_object (value);
            break;
        }

I don't see why this messages by the g-ir-scanner and the problem is that csh-operation.c/.h have the CshOperation definitions but this don't exist on the .gir file, then g-ir-compiler don't find CshOperation definition.

/usr/bin/g-ir-scanner -v \
        --namespace Csh --nsversion=0.0.0 \
        --include=GL-1.0 \
        --include=GObject-2.0 \
        --include=libxml2-2.0 \
        --include=Gda-4.0 \
        --library=cash-1.0 \
        --output Csh-1.0.gir \
        -pthread -I/usr/include/libgda-4.0 -I/usr/include/libxml2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   \
        csh-object.h csh-object.c csh-account.h csh-account.c csh-transaction.h csh-transaction.c csh-coin.h csh-coin.c csh-operation.h csh-operation.c csh-book.h csh-book.c csh-init.c libcash.h
/home/esodan/Projects/libcash/git/libcash/libcash/csh-account.c:102: unexpected character `"'
/home/esodan/Projects/libcash/git/libcash/libcash/csh-account.c:1: unexpected character `"'
  GEN   Csh-1.0.gir
ltmain.sh (GNU libtool) 2.2.6
Written by Gordon Matzigkeit <gord gnu ai mit edu>, 1996

Copyright (C) 2008 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Multiple definition of tag 'note'
/usr/bin/g-ir-compiler \
    --includedir=. --includedir=. \
     Csh-1.0.gir -o Csh-1.0.typelib

** WARNING **: Entry 'CshOperation' not found
aborting...
make[2]: *** [Csh-1.0.typelib] Cancelado
make[2]: se sale del directorio `/home/esodan/Projects/libcash/git/libcash/libcash'
make[1]: *** [all-recursive] Error 1
make[1]: se sale del directorio `/home/esodan/Projects/libcash/git/libcash'
make: *** [all] Error 2

--
Trabajar, la mejor arma para tu superación
"de grano en grano, se hace la arena" (R) (en trámite, pero para los cuates: LIBRE)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]