Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Xcode cannot find header file?

Xcode cannot find header file?
Thread Tools
Fresh-Faced Recruit
Join Date: Jan 2009
Status: Offline
Reply With Quote
Jan 21, 2009, 07:08 AM
 
I have a problem that Xcode 3 on Mac OS X 10.5 cannot find a header file that I included in a small test project.

My project is in:
/Users/<username>/Development/testlibxmlxx

The header file (libxml++.h) I want to include is in:
/opt/local/include/libxml++-1.0/libxml++

My Header Search Paths in XCode is set to:
/opt/local/include/libxml++-1.0/**

In my CPP file I have:
#include <libxml++/libxml++.h>

When I compile I get the error:
"error: libxml++/libxml++.h: No such file or directory"

If the include line is as follows I get:
#include <libxml++.h>
"error: libxml++.h: No such file or directory"

I am new to programming on the Mac with XCode, so sometimes I do not understand how things fit together.

Anyone with ideas?
     
wdicks  (op)
Fresh-Faced Recruit
Join Date: Jan 2009
Status: Offline
Reply With Quote
Jan 23, 2009, 02:58 AM
 
Anybody home?
     
Mac Elite
Join Date: Oct 1999
Location: San Jose, Ca
Status: Offline
Reply With Quote
Jan 23, 2009, 11:22 AM
 
Open the project, and right click on either the "Resources" or "Frameworks" section (purely matter of taste where you put it), and choose "Add -> Existing Files...". Navigate to the file and "Add" it. When it asks you don't want to copy this into the folder, and you might want to make the reference type absolute (so you can move your project). Make sure that the item is in the target you are building (there is only one by default).
     
Posting Junkie
Join Date: Dec 2000
Status: Offline
Reply With Quote
Jan 25, 2009, 05:01 PM
 
edit: nm

Ticking sound coming from a .pkg package? Don't let the .bom go off! Inspect it first with Pacifist. Macworld - five mice!
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 07:52 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2