Xcode cannot find #Include <> header

I am trying to get Xcode to import a header file for Irrlicht.

#include <irrlicht.h>

It says: "Irrlicht.h. There is no such file or directory." Yes, Irrlicht.h with capital I, although #include has a lowercase format.

In any case, I added "/lib/irrlicht-1.6/include" in the header search path for the Xcode project, but it still cannot find it.

The only thing I've tried is this works:

#include "/lib/irrlicht-1.6/include/irrlicht.h"

This is a little ridiculous, but #include should work, I don’t understand why it does not work.

Update (more about the error):

/lib/PAL/pal_benchmark/palBenchmark/main.h:31:0
/lib/PAL/pal_benchmark/palBenchmark/main.h:31:22: error: irrlicht.h: No such file or directory
+5
source share
5 answers

. , - , .

:

/lib/irrlicht-1.6/include/

: " ", Xcode , .

.. : " " .

, , " ", # . , - , .

+13

#include <irrlicht.h> 

#include "irrlicht.h" 

, "-I" gcc , . irrlicht.h /usr/include, "-I" .

+1

, , , .h (/lib/irrlicht-1.6/include ), . , , .., gcc , .

0

, , , . Xcode . , "TargetName/settings.h" . settings.h, .

0

, , Google, ,

XCode 3.2.6 , XCode . , , XCode .

: , "Users/Username/Desktop/Project/Some Headers"

Here is an excerpt from the GCC command line: "-I / Users / Username / Desktop / Project / Some" "-I / Headers"

To view the build log provided by Xcode, there is a good tutorial here: How do you display the build log of Xcode? (Trying to verify that the email program for building the iPhone was created correctly.)

0
source

All Articles