473,405 Members | 2,349 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

#include 'dir'

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.
Apr 16 '07 #1
5 2439
ukasz Z wrote:
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
Apr 16 '07 #2
On Apr 16, 5:19*pm, Łukasz Z <z...@wp.plwrote:
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?

Apr 16 '07 #3
sadegh napisał(a):
On Apr 16, 5:19 pm, �ukasz Z <z...@wp.plwrote:
>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?
I added this directory to search directory and in code i found that this
folder is included .
Apr 16 '07 #4
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.

Apr 17 '07 #5

"Gryz" <ve********@gmail.comwrote in message
news:11**********************@o5g2000hsb.googlegro ups.com...
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
Apr 17 '07 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Jez | last post by:
I'm ashamed that I need to ask this question. I've been using PHP for almost a year now, and have used HTML extensively in the last few years. Often, when I create a new site, I use include() to...
11
by: Yannick Turgeon | last post by:
Oups! I did a typing error in my last post. Fixed. ----------- Hello all, We are currently changing our web server and, in the process, updating PHP version from 4.3.0 to 4.3.5. The problem...
6
by: Christopher | last post by:
What is the syntax for including files from another directory? In my case I want to include a file called "error.h" which lies in a directory called "support" which is a directory inside the...
0
by: Jan | last post by:
While building PHP 4.4.0 on a fresh installed FreeBSD 5.4 I get the following error: www# /bin/sh /usr/home/c/console/toolscon/web/2/php-4.4.0/libtool --silent --preserve-dup-deps...
8
by: Alex | last post by:
Hi, I have noticed that in an aspx page <!--#include virtual="Home.htm"--> acts the same as <!--#include File="Home.htm"--> when I am NOT in the root diectory of the site (I am aware that...
11
by: MBS | last post by:
I am playing around with some PHP code. I want to put in an include() function so I can include existing HTML code and output it to the browser. Lo and behold PHP does not support relative paths...
2
by: Nick Craig-Wood | last post by:
We are currently investigating whether to move the data files from our application into python for ease of maintenance. Each data item turns into a class definition with some class data. The...
12
by: duzhidian | last post by:
failed to open stream: No such file or directory I have the programs like this structure: a.php is locate at . b.php is located at ./lib c.php is located at ./lib/sublib a.php uses a...
12
by: Pablo Suarez | last post by:
When I code #include "myheader.h" then this header file is searched in the current directory. But where does the compiler search the header file when I write #include <myheader.h>
5
by: chris_peoples | last post by:
I have a virtual directory, lets say it exists at www.server-a.com/virtual-dir/ virtual-dir points to another directory on another server using the unc path: \\server-b\main-dir I have a file at...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.