[vlc-devel] pgettext breaks compilation on linux in qt4
Cyril MATHE
cmathe at actech-innovation.com
Tue Apr 21 10:41:17 CEST 2009
Hello
Compilation on linux is broken in qt4. It gives the same error that for
mkv demux :
In file included from /usr/include/c++/4.2/i486-linux-gnu/bits/c
++locale.h:52,
from /usr/include/c++/4.2/iosfwd:45,
from /usr/include/c++/4.2/bits/stl_algobase.h:70,
from /usr/include/c++/4.2/bits/char_traits.h:46,
from /usr/include/c++/4.2/string:47,
from /usr/include/qt4/QtCore/qstring.h:62,
from /usr/include/qt4/QtCore/QString:1,
from qt4.hpp:37,
from menus.hpp:28,
from menus.cpp:37:
/usr/include/libintl.h:41: erreur: declaration of «char*
vlc_gettext(const char*) throw ()» throws different exceptions
../../../include/vlc_common.h:828: erreur: from previous declaration
«char* vlc_gettext(const char*)»
It tries to include libintl, so I add an #undef gettext in qt4.hpp (the
same solution as for mkv) but it gives an other error later :
dialogs/playlist.cpp:44: erreur: «gettext» was not declared in this
scope
Best Regards
Cyril Mathé
More information about the vlc-devel
mailing list