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 3698528
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T04:59:31+00:00 2026-05-19T04:59:31+00:00

In MSVS when I #include <someHeader> it is searched in a different folder than

  • 0

In MSVS when I #include <someHeader> it is searched in a different folder than the headers included with #include "someheader". Same thing should be in xcode, but it seems that it does not work. Because of this I have conflicts with local headers that have same name as std headers(String.h, etc) and I can’t include std headers. I tried to change project option "Always search user paths" but it still does not work. The help message from this options says that it will solve my problem, but…

If enabled, both #include
<header.h>-style and #include
"header.h"-style directives will
search the paths in "User Header
Search Paths" before "Header Search
Paths", with the consequence that user
headers (such as your own String.h
header) would have precedence over
system headers when using #include
<header.h>. This is done using the
-iquote flag for the paths provided in "User Header Search Paths". If
disabled and your compiler fully
supports separate user paths, user
headers will only be accessible with

include "header.h"-style preprocessor directives.

For backwards compatibility reasons,
this setting is enabled by default,
but disabling it is strongly
recommended.
[ALWAYS_SEARCH_USER_PATHS]

Do you have any idea how to solve this? I really don’t want to change my header files names or to remove search paths from project settings and use relative paths to local files (../../ … /SomeFolder/SomeHeader.h).

  • 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-19T04:59:32+00:00Added an answer on May 19, 2026 at 4:59 am

    I solved the problem by changing all headers extension from h to hpp… It’s not a real solution, but I kept the file names and I solved the problem, for now:)

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

Sidebar

Related Questions

In MSVC++ #include files are searched for differently depending on whether the file is
I am fairly new to developing C/C++ code in MSVS but one of the
What are the advantages/disadvantages between MS VS C++ 6.0 and MSVS C++ 2008? The
This might not appear like a programming question, but inherently deals with code. I
I am using MSVS C++ Express 2008. Right now my intellisense only works for
I just downloaded MSVS 2010 from university MSDN AA. The IDE itself is wonderful,
I created a C# web project with MSVS 9 and thats all i know
when you set a databreakpoint in MSVS, then you put in the address and
I use MSVS 2010 and MSVC++E 2010 to build my applications in C++ and
I can reference Matlab code from a x86 based project, but not from an

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.