Compile error in kdesdk/kbabel/common/. C++ standard headers problem

Frans Englich frans.englich at telia.com
Wed Jan 14 03:32:47 GMT 2004


Hi, 

When I compile kdesdk it consistently fails. The output is below, my system 
spec is:
* gcc 3.2.2
* automake 1.7.3
* make 3.80
(Slackware 9.0)

Shouldn't I be able to compile with this setup?

Cheers,

			Frans 



if /bin/sh ../../../libtool --silent --mode=compile --tag=CXX g++ 
-DHAVE_CONFIG_H -I. -I. -I../../..   -DQT_THREAD_SUPPORT  -D_REENTRANT  
-Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -W -Wpointer-arith 
-Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align 
-Wconversion -Wchar-subscripts -fno-builtin -g3 -fno-inline -Wformat-security 
-Wmissing-format-attribute -fno-exceptions -fno-check-new -fno-common 
-DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT 
-DQT_NO_TRANSLATION  -MT pofiles.lo -MD -MP -MF ".deps/pofiles.Tpo" \
  -c -o pofiles.lo `test -f 'pofiles.cc' || echo './'`pofiles.cc; \
then mv ".deps/pofiles.Tpo" ".deps/pofiles.Plo"; \
else rm -f ".deps/pofiles.Tpo"; exit 1; \
fi
In file included from /usr/include/c++/3.2.2/backward/iostream.h:31,
                 from /usr/include/FlexLexer.h:47,
                 from pofiles.cc:241:
/usr/include/c++/3.2.2/backward/backward_warning.h:32:2: warning: #warning 
This file includes at least one deprecated or antiquated header. Please 
consider using one of the 32 headers found in section 17.4.1.2 of the C++ 
standard. Examples include substituting the <X> header for the <X.h> header 
for C++ includes, or <sstream> instead of the deprecated header 
<strstream.h>. To disable this warning use -Wno-deprecated.
In file included from /usr/include/FlexLexer.h:47,
                 from pofiles.cc:241:
/usr/include/c++/3.2.2/backward/iostream.h:36: using declaration `istream'
   introduced ambiguous type `istream'
pofiles.cc:401:5: warning: "YY_STACK_USED" is not defined
pofiles.cc: In member function `virtual int GettextBaseFlexLexer::yylex()':
pofiles.cc:683: cannot convert `std::istream*' to `istream*' in assignment
pofiles.cc: In member function `void
   GettextBaseFlexLexer::yy_load_buffer_state()':
pofiles.cc:1216: cannot convert `istream*' to `std::istream*' in assignment
pofiles.cc: In member function `void
   GettextBaseFlexLexer::yy_init_buffer(yy_buffer_state*, std::istream*)':
pofiles.cc:1267: cannot convert `std::istream*' to `istream*' in assignment
pofiles.cc:1458:5: warning: "YY_MAIN" is not defined
make[4]: *** [pofiles.lo] Error 1
make[4]: Leaving directory 
`/mnt/data/home/frans/prog/kde/src/kdesdk/kbabel/common/libgettext'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory 
`/mnt/data/home/frans/prog/kde/src/kdesdk/kbabel/common'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/mnt/data/home/frans/prog/kde/src/kdesdk/kbabel'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/mnt/data/home/frans/prog/kde/src/kdesdk'
make: *** [all] Error 2
bash-2.05b$
___________________________________________________
This message is from the kde mailing list.
Account management:  https://mail.kde.org/mailman/listinfo/kde.
Archives: http://lists.kde.org/.
More info: http://www.kde.org/faq.html.




More information about the kde mailing list