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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T08:35:46+00:00 2026-05-26T08:35:46+00:00

I am using visual studio 2005 to create a project. And I have folder

  • 0

I am using visual studio 2005 to create a project. And I have folder structure in project as: a folder called code. this folder contains all *.cxx files.

Now, I have created a class xyz in header file xyz.h. And defined every thing in xyz.cxx which is placed in code folder.
But now when I try to compile it with visual studio it throws me an error
“fatal error C1083: Cannot open include file: ‘xyz.h’: No such file or directory”. how to rectify this problem.

  • 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-26T08:35:46+00:00Added an answer on May 26, 2026 at 8:35 am

    Either move the xyz.h file somewhere else so the preprocessor can find it, or else change the #include statement so the preprocessor finds it where it already is.

    Where the preprocessor looks for included files is described here. One solution is to put the xyz.h file in a folder where the preprocessor is going to find it while following that search pattern.

    Alternatively you can change the #include statement so that the preprocessor can find it. You tell us the xyz.cxx file is is in the ‘code’ folder but you don’t tell us where you’ve put the xyz.h file. Let’s say your file structure looks like this…

    <some folder>\xyz.h
    <some folder>\code\xyz.cxx
    

    In that case the #include statement in xyz.cxx should look something like this..

    #include "..\xyz.h"
    

    On the other hand let’s say your file structure looks like this…

    <some folder>\include\xyz.h
    <some folder>\code\xyz.cxx
    

    In that case the #include statement in xyz.cxx should look something like this..

    #include "..\include\xyz.h"
    

    Update: On the other other hand as @In silico points out in the comments, if you are using #include <xyz.h> you should probably change it to #include "xyz.h"

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

Sidebar

Related Questions

I have Visual Studio 2005 Professional ENU installed and want to create GUIDs using
I'm using Visual Studio 2005. I create a project, not Web Project, just Windows
I've have been using Visual Studio 2005, alongside Visual Web Developer 2008 to create
(Using Visual Studio 2005 / .NET 2.0) I have a DataSet which is being
I'm using Visual Studio 2005. I have a program written in C#. When I
Using Visual Studio 2005 I have list of class files, when i try to
I am using VC++ / Visual Studio 2005. I created a DLL project. The
I´m using Visual Studio 2008 / C# and SQL Server 2005 to create a
I'm using Visual Studio 2005 for a project I'm working on right now. I've
I am using Visual Studio 2005, (.NET version > 2.0+) to create a windows

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.