Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7676717
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T17:15:42+00:00 2026-05-31T17:15:42+00:00

I’m trying to set the header search path in Xcode 4 (using LLVM 2.0

  • 0

I’m trying to set the header search path in Xcode 4 (using LLVM 2.0 / clang as compiler) in a C++ command line project so that I can include a library header file via #include <foo>.

If I include the search path under the build setting “Header Search Paths” then the header is found. Unfortunately, I also compile with -Werror and a strict warning level and the header in question thus causes a compile error.

I would therefore include the header search path via -isystem in order to disable warnings for this library header. However, I’m unable to find the corresponding build setting in Xcode 4. Neither “Header Search Paths” nor “User Header Search Paths” works.

Does Xcode not support the -isystem flag?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T17:15:44+00:00Added an answer on May 31, 2026 at 5:15 pm

    As you have pointed out, -isystem is the way gcc handles system include dirs, and unlike -I directories, the -isystem ones will have warnings suppressed and the various other behaviors you get from system include paths.

    Xcode may not make it obvious, but the llvm-based gcc-like compiler provided with Xcode 4.3 does support this option just like gcc. It seems to be a common myth that it doesn’t (no doubt because it didn’t in the past), and even CMake (2.8.7) still continues to avoid using the -isystem option with Xcode.

    For those making Xcode projects by hand, the “Header Search Paths” (as opposed to “User Header Search Paths”) in your project settings will also work, as you’ve mentioned, and is probably easier if you don’t use something like CMake to build your Xcode project.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to set a header and footer in my list view that are
I'm trying to search eBay via C# and XML. I can see that I'm
Alternate titles to aid search Xcode can't find header Missing .h in Xcode Xcode
I am trying to add the Parsekit framework to my OSX Xcode project. I've
I'm trying to set up autoconf for my project. I have everything working properly
I'm trying (failing) to setup RestKit, which requires one Xcode project to be referenced
I am trying to create an mac application in XCode that has some of
I've got a Core Data property that I'm trying to set at runtime, with
I have a set of csv headers that I am trying to match with
I am using Ruby on Rails 3 and I am trying to set values

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.