Doug Smith
Doug Smith

Reputation: 29326

How do I make Xcode accept paths in #include statements?

In one file in Xcode, I'm writing:

#include "mass/gravity_tool.h"

And it keeps complaining that the file can't be found. However, if I change it to just:

#include "gravity_tool.h"

It finds it fine.

The .h file is indeed within a "mass" folder I dragged into Xcode.

I can't just change it to remove the path because this is used throughout dozens of files. Is there a way to get it to accept it as is?

Upvotes: 0

Views: 110

Answers (1)

Cy-4AH
Cy-4AH

Reputation: 4615

Add in Header Search Pathes parent of mass-folder.

Upvotes: 1

Related Questions