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

List:       kde-kuml-devel
Subject:    Won't Build
From:       Eric Lemings <eric.b.lemings () lmco ! com>
Date:       2000-09-26 16:40:16
[Download RAW message or body]

Configure went fine.  Build failed.  Here's the details:

make[5]: Entering directory
`/usr/local/cvs/kdenonbeta/kuml/kuml/data/persistence/XML'
g++ -DHAVE_CONFIG_H -I. -I. -I../../../.. -I/usr/include/kde
-I/usr/lib/qt-2.1.0/include  -I/usr/X11R6/include    -g -Wall -c
clXmlElementMemento.cpp
g++ -DHAVE_CONFIG_H -I. -I. -I../../../.. -I/usr/include/kde
-I/usr/lib/qt-2.1.0/include  -I/usr/X11R6/include    -g -Wall -c
clGnomeXmlDataSource.cpp
In file included from ../../element.h:28,
                 from ../../relationship.h:24,
                 from ../clMementoLibrary.h:9,
                 from ../clDataSource.h:5,
                 from clXmlDataSource.h:6,
                 from clGnomeXmlDataSource.h:11,
                 from clGnomeXmlDataSource.cpp:3:
../../utils.h:57: `GCI' was not declared in this scope
../../utils.h:57: parse error before `,'
../../utils.h:67: `GCI' was not declared in this scope
../../utils.h:67: parse error before `,'
make[5]: *** [clGnomeXmlDataSource.o] Error 1
make[5]: Leaving directory
`/usr/local/cvs/kdenonbeta/kuml/kuml/data/persistence/XML'

The offending code:

[...snip...]

#if defined (KDE2)
#include <qcollection.h>
typedef QCollection::Item GCI;
#endif // defined (KDE2)

[...snip...]

/**
 * This class provides a very simple override of the QList behavior so
 * that we can have a list of classes that is sorted.  The comparison
 * is based on the class name, and it ignores case.  At this time there
 * is no accounting for name spaces or directory structures.
 */
class ClassList : public ClassListBase {
        private:
                /**
                 * This overrides the default behavior and compares on
Property/Classes name.
                 * If this class proves useful beyond this scope it
should be extracted and
                 * given its own header/implementation files.
                 * @author Jake Fear
                 */
                int virtual compareItems( GCI p1, GCI p2 );

[...snip...]

It would seem that you can define a type inside an ifdef and then use it
outside that ifdef if that ifdef is not defined on the build platform. 
Need an elif in that ifdef to define the type to some reasonable type
for non-KDE2 platforms or use it only on KDE2 platforms.

Eric.

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

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