#include 'dir'

  • Thread starter =?ISO-8859-2?Q?=A3ukasz_Z?=
  • Start date
?

=?ISO-8859-2?Q?=A3ukasz_Z?=

hello,
Is there any way to include directory in program
eg.

#include <Qt>

where a Qt is a directory

I have exactly such problem I download source code and I can not compile
it, because there is included the directory.
 
T

Thomas Matthews

£ukasz Z said:
hello,
Is there any way to include directory in program
eg.

#include <Qt>

where a Qt is a directory

I have exactly such problem I download source code and I can not compile
it, because there is included the directory.

The "#include" directive can be used to include header files and
source code.

As far as folders and directories are concerned, most compilers have
a switch or option that allows users to specify directories to search.
A popular command line option is "-i" or "-I".

Search your help files for "include directories".

--
Thomas Matthews

C++ newsgroup welcome message:
http://www.slack.net/~shiva/welcome.txt
C++ Faq: http://www.parashift.com/c++-faq-lite
C Faq: http://www.eskimo.com/~scs/c-faq/top.html
alt.comp.lang.learn.c-c++ faq:
http://www.comeaucomputing.com/learn/faq/
Other sites:
http://www.josuttis.com -- C++ STL Library book
http://www.sgi.com/tech/stl -- Standard Template Library
 
S

sadegh

hello,
Is there any way to include directory in program
eg.

        #include <Qt>

        where a Qt is a directory

I have exactly such problem I download source code and I can not compile
it, because there is included the directory.

How do you find that the name you called "Qt" is a directory?
 
G

Guest

sadegh napisał(a):
How do you find that the name you called "Qt" is a directory?
I added this directory to search directory and in code i found that this
folder is included .
 
G

Gryz

In this case "Qt" is not directory.
This is filename that contains declaration of namespace Qt.
It seems to me you are trying to use qt-library.
 
H

Howard

Gryz said:
In this case "Qt" is not directory.
This is filename that contains declaration of namespace Qt.
It seems to me you are trying to use qt-library.

In *what* case? *What* is a filename?

Please include enough of what you're responding to that we can understand
what you're talking about, without having to go read other posts.

-Howard
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,815
Messages
2,569,705
Members
45,494
Latest member
KandyFrank

Latest Threads

Top