How can i use the Paths from ./configure in my C++ Project?

p_george p_george at club-internet.fr
Fri Nov 19 09:00:00 GMT 1999


Tobias Erbsland wrote:
> 
> Hello
> 
> I hope this is no silly quesion, but i didn't find any answer in the whole
> KDevelop documentation.
> 
> I write actually on a new server in C++ logically with KDevelop ;-) The
> Server need some configuration-files. This files i added already to the
> Project in a new subdir (conf).
> 
> What is now the best way to find out, where are the files after the
> installation? The configure script use the macro "datadir" to install the
> files to the right place, but how can i access this value?

kapp->kde_datadir()

> Another, maybe better question, how can i avoid the use of hardcoded
> path's in a easy way with KDevelop (in a C++ Project....) ?

See answer above : it relies on the KDEDIR env.
 
 
> And i know this is not the Mailinglist for this question, but...: I use a
> new class to throw exceptions:
> 
>   class MyClass {
>     public:
>       class Error {};
>   };
> 
> Another class make use of instances from this class:
> 
>   class AnotherClass {
>     private:
>       MyClass * pointer;
>   };
> 
> Now the Compiler give me a Warning: multible struct info nodes in both .o
> files. .... How this?
 
Maybe is it a bug from moc file and not a c++ related one ??






More information about the KDevelop mailing list