Re: Including headers path
Are you sure you have stored the header file in /my/folder/ ?
It' s absolute path. Maybe you want to add the relative path.
Then you sould qmake again.
Re: Including headers path
Quote:
Originally Posted by
DadaLee
Are you sure you have stored the header file in /my/folder/ ?
It' s absolute path. Maybe you want to add the relative path.
Yes, I gave absolute path (this was only example I wrote before, I'm trying to add oracle headers - /usr/include/oracle/..... and it can't find occi.h)
Quote:
Originally Posted by
DadaLee
Then you sould qmake again.
I did it also.
Re: Including headers path
Exactly what did you write to the .pro file? In which exact directory is occi.h? How did you write the include directive? What does the corresponding compiler command look like, including all arguments?
Re: Including headers path
Quote:
Originally Posted by
jpn
Exactly what did you write to the .pro file?
Code:
SUBDIRS += src
TEMPLATE = subdirs
CONFIG += warn_on \
qt \
thread
INCLUDEPATH += /usr/include/oracle/10.2.0.4/client
Quote:
Originally Posted by
jpn
In which exact directory is occi.h?
Like above.
Quote:
Originally Posted by
jpn
How did you write the include directive?
Normally as
Quote:
Originally Posted by
jpn
What does the corresponding compiler command look like, including all arguments?
Code:
g++ -c -pipe -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -D_REENTRANT -Wall -W -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/lib/qt4/mkspecs/linux-g++ -I. -I/usr/include/QtCore -I/usr/include/QtCore -I/usr/include/QtGui -I/usr/include/QtGui -I/usr/include -I. -I. -o oracleconn.o oracleconn.cpp
Any ideas what could be wrong??
Re: Including headers path
Try moving the INCLUDEPATH to src.pro.
Re: Including headers path
Ok I solved the problem. I had to add this directive but in next directory level (in src folder).
Is there a way to inherit that directive from the first .pro file?
Re: Including headers path
try to use
Code:
include (pro_of_pri_file)
for including instractions from one pro/pri-file to another.