[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    kdebase/kdm/kfrontend (cvs) fails to compile
From:       Joachim Eibl <joachim.eibl () gmx ! de>
Date:       2004-01-31 12:56:44
Message-ID: 200401311356.44171.joachim.eibl () gmx ! de
[Download RAW message or body]

Hi,

Im getting an error (see below) when compiling kdebase.

The problem is due to a double declaration of QCStringList:
1. /opt/kdecvs/include/kcmdlineargs.h:29
typedef QValueList<QCString> QCStringList;

2. kdebase/kdm/kfrontend/kgapp.cpp:35
class QCStringList : public QValueList<QCString> {
public:
    bool contains( const char *str ) const
    {
        for (ConstIterator it = begin(); it != end(); ++it)
            if (*it == str)
                return true;
        return false;
    }
};

I'm also using the latest kdelibs from cvs.

Does anyone else also have this problem?

Joachim

This is the compiler output:

make[4]: Entering directory `/home/joachim/kdecvs/build/kdebase/kdm/kfrontend'
if g++ -DHAVE_CONFIG_H -I. -I../../../../kdebase/kdm/kfrontend -I../..  
-I../../../../kdebase/kdm/kfrontend/../backend 
-I../../../../kdebase/kcontrol/background -I/opt/kdecvs/include 
-I/home/joachim/kdecvs/qt-copy/include -I/usr/X11R6/include  -DXDMCP 
-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 -O2 
-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 -D_GNU_SOURCE  -MT kdm_greet.all_cpp.o -MD 
-MP -MF ".deps/kdm_greet.all_cpp.Tpo" \
  -c -o kdm_greet.all_cpp.o `test -f 'kdm_greet.all_cpp.cpp' || echo 
'../../../../kdebase/kdm/kfrontend/'`kdm_greet.all_cpp.cpp; \
then mv -f ".deps/kdm_greet.all_cpp.Tpo" ".deps/kdm_greet.all_cpp.Po"; \
else rm -f ".deps/kdm_greet.all_cpp.Tpo"; exit 1; \
fi
In file included from kdm_greet.all_cpp.cpp:11:
../../../../kdebase/kdm/kfrontend/kgreeter.cpp: In member function `void
   KGreeter::pluginSetup()':
../../../../kdebase/kdm/kfrontend/kgreeter.cpp:617: Warnung: `int field' might
   be used uninitialized in this function
In file included from ../../../../kdebase/kdm/kfrontend/kgapp.cpp:35,
                 from kdm_greet.all_cpp.cpp:12:
/opt/kdecvs/include/kcmdlineargs.h: At global scope:
/opt/kdecvs/include/kcmdlineargs.h:29: error: conflicting types for `typedef
   class QValueList<QCString> QCStringList'
../../../../kdebase/kdm/kfrontend/kgreeter.cpp:317: error: previous 
declaration
   as `class QCStringList'
make[4]: *** [kdm_greet.all_cpp.o] Fehler 1
 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic