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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T23:36:22+00:00 2026-06-15T23:36:22+00:00

I am banging my head on this one for a while so I figure

  • 0

I am banging my head on this one for a while so I figure I will post. I have two library projects where Project2 uses/references Project1 in the following directory structure.

c:\code\Library\Project1
c:\code\Library\Project2

Both are library projects. I have included the path in Project2 at Properties>Configuration Properties>C/C++>General>’Additonal Include Directories’. It reads ..\Project1; %(AdditionalIncludeDirectories)

Now there is a file in Project2 which #includes file that is present in project1 folder. Inspite of having included the path as above it still comes up with an error:

1>c:\code\Library\Project2\MyTestDlg.cpp(6): fatal error C1083: Cannot open include file: 'GraphCtrl.h': No such file or directory

The weird thing is that similar setting works if I don’t change the original project names. The projects are originally in folder where they link fine.

c:\code\Library\Project1 1.0.0
c:\code\Library\Project2 1.0.0

What I am doing is removing the last version names from the project folders (and relink them together again) but this has become a nightmare! Any suggestions?

p.s I did research on this quite a bit and it seems like has to do with length of the directories but I think I am well with in limits. The fact that previously longer folder names work and short doesn’t, it shows lengths are not the issue.

Addon:

The following is the actual error I am getting with actual file names: One of the problem is that somehow it still references the old library with full name GraphCtrlLib 1.0.0.0 even though I have completely removed it and can’t find any more reference of it. I this it probably is not related to this error though.

1>Build started 12/11/2012 5:16:02 PM.
1>C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.Targets(1200,9): warning : The referenced project '..\Graph\Graph.vcxproj' does not exist.
1>InitializeBuildStatus:
1>  Touching "Debug\ViewerLib.unsuccessfulbuild".
1>ClCompile:
1>  All outputs are up-to-date.
1>  OpenViewerDlg.cpp
1>c:\code\libraries\viewerlib\viewerdlg.cpp(6): fatal error C1083: Cannot open include file: 'GraphCtrl.h': No such file or directory
  • 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-06-15T23:36:22+00:00Added an answer on June 15, 2026 at 11:36 pm

    Finally fixed the problem. I opened the .vcxproj file in notepad and changed all reference of old path to new path and saved it. That fixed the problem.

    It was caused by the fact that the project file was read only and VC2010 was not updating it properly. I kept making the changes in project properties and I could tell by reading back that they are as I wanted them but when I closed the project and load it back, it was back to what was before change. So the changes were never getting applied. VS2010 didn’t tell me that it can’t save or apply the changes but would accept them and never apply them!

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

Sidebar

Related Questions

Ok, I have been banging my head on this one for a while, figure
I have been banging my head against this one for two days on and
I have been banging my head over this one for quite a while now
I have been banging my head against this one for a while now and
I have been banging my head on this one for too long. I have
I have been banging my head on a wall with this one. I need
Been banging my head against this one for a while, and figured I'd turn
I have been banging my head on this one for hours and I am
Been banging my head against this one for a while... <div id=pager style=top: 5px;
I've been banging my head against the wall for a while with this one

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.