Blakstaf | Je suis confronté à un problème que je n'ai pas réussi à résoudre.
je cherche à compiler un programme qui utilise la bibliothèque Gnome dans sa version 1.
Lors de la compilation avec les outils autoconf/automake, j'obtiens les warning suivants :
Citation :
In file included from /usr/include/c++/3.4/i486-linux/bits/c++locale.h:46,
from /usr/include/c++/3.4/iosfwd:46,
from /usr/include/c++/3.4/ios:44,
from /usr/include/c++/3.4/ostream:45,
from /usr/include/c++/3.4/iostream:45,
from VideoWin.h:4,
from VideoWin.cc:6:
/usr/include/libintl.h:108:1: warning: this is the location of the previous definition
|
L'application se compile mais à l'exécution, elle ne fonctionne pas du tout comme prévu.
Autre chose, si j'inclue dans mes fichiers <iostream> apres <gnome.h>, alors je n'ai plus droit à un warning mais à une jolie erreur :
Citation :
In file included from /usr/include/c++/3.4/i486-linux/bits/c++locale.h:46,
from /usr/include/c++/3.4/iosfwd:46,
from /usr/include/c++/3.4/ios:44,
from /usr/include/c++/3.4/ostream:45,
from /usr/include/c++/3.4/iostream:45,
from VideoWin.h:7,
from VideoWin.cc:6:
/usr/include/libintl.h:40: error: expected unqualified-id before "const"
/usr/include/libintl.h:40: error: expected `)' before "const"
/usr/include/libintl.h:40: error: expected init-declarator before "const"
/usr/include/libintl.h:40: error: expected `,' or `;' before "const"
/usr/include/libintl.h:44: error: expected unqualified-id before "const"
/usr/include/libintl.h:44: error: expected `)' before "const"
/usr/include/libintl.h:44: error: expected init-declarator before "const"
/usr/include/libintl.h:44: error: expected `,' or `;' before "const"
/usr/include/libintl.h:51: error: expected unqualified-id before "const"
/usr/include/libintl.h:51: error: expected `)' before "const"
/usr/include/libintl.h:51: error: expected init-declarator before "const"
/usr/include/libintl.h:51: error: expected `,' or `;' before "const"
/usr/include/libintl.h:81: error: expected unqualified-id before "const"
/usr/include/libintl.h:81: error: expected `)' before "const"
/usr/include/libintl.h:81: error: expected init-declarator before "const"
/usr/include/libintl.h:81: error: expected `,' or `;' before "const"
/usr/include/libintl.h:85: error: expected unqualified-id before "const"
/usr/include/libintl.h:85: error: expected `)' before "const"[/cpp]
/usr/include/libintl.h:85: error: expected init-declarator before "const"
/usr/include/libintl.h:85: error: expected `,' or `;' before "const"
|
voici la parti du fichier libintl.h :
Code :
- * /* Message catalogs for internationalization.
- * Copyright (C) 1995-1999, 2000-2002 Free Software Foundation, Inc.
- * This file is part of the GNU C Library.
- * This file is derived from the file libgettext.h in the GNU gettext package.
- *
- * The GNU C Library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * The GNU C Library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with the GNU C Library; if not, write to the Free
- * Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
- * 02111-1307 USA. */
- *
- * #ifndef _LIBINTL_H
- * #define _LIBINTL_H 1
- *
- * #include <features.h>
- *
- * /* We define an additional symbol to signal that we use the GNU
- * implementation of gettext. */
- * #define __USE_GNU_GETTEXT 1
- *
- * /* Provide information about the supported file formats. Returns the
- * maximum minor revision number supported for a given major revision. */
- * #define __GNU_GETTEXT_SUPPORTED_REVISION(major) \
- * ((major) == 0 ? 1 : -1)
- *
- * __BEGIN_DECLS
- *
- * /* Look up MSGID in the current default message catalog for the current
- * LC_MESSAGES locale. If not found, returns MSGID itself (the default
- * text). */
- * extern char *gettext (__const char *__msgid) __THROW;
- *
- * /* Look up MSGID in the DOMAINNAME message catalog for the current
- * LC_MESSAGES locale. */
- * extern char *dgettext (__const char *__domainname, __const char *__msgid)
- * __THROW;
- * extern char *__dgettext (__const char *__domainname, __const char *__msgid)
- * __THROW __attribute_format_arg__ (2);
- *
- * /* Look up MSGID in the DOMAINNAME message catalog for the current CATEGORY
- * locale. */
- * extern char *dcgettext (__const char *__domainname,
- * __const char *__msgid, int __category) __THROW;
- * extern char *__dcgettext (__const char *__domainname,
- * __const char *__msgid, int __category)
- * __THROW __attribute_format_arg__ (2);
|
Si vous avez une petite idée... Message édité par Blakstaf le 24-05-2005 à 10:55:00
|