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

List:       kde-devel
Subject:    Re: Compile error fix for kdebase/kpager in 3.1
From:       Dirk Mueller <mueller () kde ! org>
Date:       2003-01-30 23:34:52
[Download RAW message or body]

On Don, 30 Jan 2003, John Gluck wrote:

> The line to include the correct file is simply not in the cpp file. 

It is there. In the KDE buildsystem #include <foobar> and #include "foobar"
makes simply no difference. 

Try this: 

$ touch test.cc
$ g++ -I. -v -c test.cc

[...]
#include <...> search starts here:
 .
 /usr/include/c++/3.2
 /usr/include/c++/3.2/i386-linux
 /usr/include/c++/3.2/backward
 /usr/local/include
 /usr/lib/gcc-lib/i386-linux/3.2.2/include
 /usr/include
End of search list.

As you can see, the -I paths are prepended. Therefore it will always pick 
the config.h in the current directory, because -I. should be always the 
first include in your compiler invocation line. 

> If you don't want to add the line to the file that's OK with me. The next time 
> there's a release, if it breaks, I'll just make the change.

I've committed your fix long ago already. Look, I'm just trying to 
understand why it breaks on your system at all. But I'll stop wasting my 
time trying to debug your setup. 


-- 
Dirk (received 11 mails today)
 
>> 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