[Qt-interest] Include Files from a "shared" directory

sergio cavalcante sergio.cavalcante at gmail.com
Tue May 19 23:10:48 CEST 2009


Hello People,

I have a problem here that may be something I'm doing wrong, but it's giving
me a big headache.

I have a project that I'll call Project A on a folder called "ProjectA".
I have another project that I'll call Project B on a folder called
"ProjectB".

These two project have in common the need to use a class to access a
Database.

So, I've created another folder called "Shared", where I've placed the
ConfigDB.h and ConfigDB.cpp files.

Then, with my ProjectA and ProjectB loaded on QT Creator, I click on the
right button mouse, choose to add an "Existing File" to my projects, choose
both files and add them.

But the problem is, on build time, both projects can't find these files. I
tried to put the relative path on include calls, like
"../shared/ConfigDB.h", but haven't help, thus.

I searched a lot o google for some answer to my problem, but I failed
miserably. :'(

Sorry about my poor english, and Thank's for any help to a poor QT Noob.

Best Regards,
------------------------------
Sérgio Cavalcante
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090519/ce9b8a07/attachment.html 


More information about the Qt-interest-old mailing list