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

List:       kde-edu-devel
Subject:    Re: [Kde-edu-devel] Problems compiling kdeedu
From:       Eva Brucherseifer <eva () kde ! org>
Date:       2001-11-01 22:34:52
[Download RAW message or body]


Hi Marc,

which compiler version do you use? These defines were common with old c++ 
compilers such as gcc-2.7.x, because bool as a builtin data type came with 
ANSI in 1998.

My guess is, that you have a strange compiler version, or that the auto 
detection doesn't work for any reason.

Greetings,
eva


On Donnerstag, 1. November 2001 20:29, Marc Bartsch wrote:
> Hi,
>
> I tried to compile kdeedu today with brand new qt-copy and kdelibs
> snapshots, but I got the following problems:
>
> In file included from keduca.h:22,
>                  from keduca.cpp:18:
> ../../config.h:59: declaration does not declare anything
> ../../config.h:61: parse error before `false'
> ../../config.h:62: parse error before `true'
> make[4]: *** [keduca.o] Error 1
> make[4]: Leaving directory `/home/marc/Projekte/kdeedu/keduca/keduca'
> make[3]: *** [all-recursive] Error 1
> make[3]: Leaving directory `/home/marc/Projekte/kdeedu/keduca/keduca'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory `/home/marc/Projekte/kdeedu/keduca'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/home/marc/Projekte/kdeedu'
> make: *** [all-recursive-am] Error 2
>
> I looked into config.h and these are the lines that cause the error (I
> added line numbers):
>
> #ifndef HAVE_BOOL
> #define HAVE_BOOL
> typedef int bool;  <---------- Line 59
> #ifdef __cplusplus
> const bool false = 0; <---------- Line 61
> const bool true = 1;  <---------- Line 52
> #else
> #define false (bool)0;
> #define true (bool)1;
> #endif
> #endif
>
> Any ideas?
>
> Have fun,
>
> Marc.
_______________________________________________
kde-edu-devel mailing list
kde-edu-devel@mail.kde.org
http://mail.kde.org/mailman/listinfo/kde-edu-devel

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

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