473,386 Members | 1,644 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,386 software developers and data experts.

Eclipse CDT search entire project for includes

7
Hi all,

I recently started using eclipse indigo with CDT 8.0 to edit a C++ project. However, whenever i try to build the project it complains that includes cannot be found. The src folder has many subfolders, and some of them have subfolders. The problem apparently is that the compiler does not look in other subfolders for matches for include statements. Since I would rather not edit all include statements to have the full path or add all subfolders in the include directories in the properties, I was wondering if there is an option to instruct the compiler to search the entire project. Also, shouldn't it be doing this already?

thanks.
Sep 11 '11 #1
3 4230
Banfa
9,065 Expert Mod 8TB
Right click your on your project in the tree (project explorer) and select properties.

Select "C++ General" -> "Paths and Symbols"

The first tab, already selected, is the "includes" tab where you can enter your include directories.
Sep 12 '11 #2
Sir G
7
I know, but why do I have to specify the subfolders of the project itself? There are quite a lot of them. Can't eclipse search the subfolders of the project on it's own? Do I really have to include all of them manually?
Oct 11 '11 #3
Banfa
9,065 Expert Mod 8TB
No it is quite normal in a C++ environment for you to have to specify your include directories explicitly.
Oct 12 '11 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

9
by: ETL | last post by:
Hi, I have an xml document that feeds a treeview menu on my web site. The structure of the xml file is as follows. <XML type="text/xml"> <root> <a0 name="One"> <a0_0 html="Report 1" id="1" />...
4
by: Cyrus Mortazavi | last post by:
In Visual Basic 6.0, one could conduct a search (and replace) throughout an entire project, even if those files were not currently open. How does one do this in Visual Studio .NET 2002?
1
by: bob | last post by:
Hello, I have a SetUp project in my solution. When I add the primary output of certain projects to it they add their project dependencies twice - the debug and the release. Anyone known what...
3
by: Uri Dimant | last post by:
Hi,friends How do I make to my VB project to move with Next Bookmars among classes and modules ? When I make Bookmark it is valid only within current class/module and does not move to another...
2
by: Greg Chu | last post by:
Does any one know a way to print the entire project code out? I can only see print source code one by one. Thanks! Greg
4
by: mycall | last post by:
Is there an easy way to search all tables using a string as search criteria. I have started writting a heap of nested for loops, getting table defs and fields however it is becoming a little bit...
24
momotaro
by: momotaro | last post by:
I m trying to use eclipse for c but when i creat a project and try to build i have this error message: error launching 'cygin'... plz help!
3
by: Soulless | last post by:
Is there a conveninent place to go to search the entire project/ solution for specific occurances of text. for instance, if I want to find where all occurences of "counter" was in my project, is...
0
by: Tim Mullin | last post by:
Hi all, This is a request that seems pretty common, but I have yet to find a definitive answer for it. I'm also fairly new to Access/VBA, so my apologies if this seems redundant. I would like...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...

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.