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

  • Home
  • SEARCH
  • 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 1008839
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T08:49:59+00:00 2026-05-16T08:49:59+00:00

I am using Visual Studio 2008 C++ project (Visa 32 bit). I have the

  • 0

I am using Visual Studio 2008 C++ project (Visa 32 bit).

I have the following #include directive in my source code.

#include <example/header.h>

In my include path I specify the parent directory of ‘example’, i.e.

C:/.../include

where the full path to the header looks like

C:/.../include/example/header.h

However, ‘example’ is a symbolic link (A ‘.lnk’ created via file explorer ‘new shortcut’). I get the following error

c:…\foo.cpp(37) : fatal error C1083: Cannot open include file: ‘example/header.h’: No such file or directory

If I replace the symbolic link with the actual directory, the project will compile correctly. For practical reasons I need it to be a symbolic link. Is there anyway to make the Visual Studio pre-processor follow the link?

  • 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-16T08:49:59+00:00Added an answer on May 16, 2026 at 8:49 am

    The link is a symbolic link (.lnk)

    Are you sure you’re not creating a shortcut? Shortcuts work on a higher level than symbolic links and mean nothing to applications.

    Conversely, symbolic links (if properly created) should work fine with any application that reads/writes to files/folders.

    For more details, you may wish to consider reading this article about symbolic links, which explains how you can create a symbolic link using mklink.

    Here’s a helpful snippet from a comment on that article by “Bernard Kerckenaere”:

    • shortcut: on the operating system level (to applications who wish to
      read/write the link, it’s just a
      meaningless file)

    • soft link (or symbolic link): like a shortcut, but on the filesystem level
      (applications reading/writing the
      link, will actually read/write the
      file linked to)
      …
      this will work across partitions, or drives

    • hard link: only for files, what happens is that there are multiple
      file entries that point to the same
      physical data, when you delete one
      entry, the other will still work, the
      data won’t be gone until all entries
      are deleted (if with a soft link you
      delete the original directory, the
      link won’t work anymore!)
      -> you can obviously only create hard links to a file on the same partition

    What you want to create is a symbolic link which you can do with the /D parameter using mlink.

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

Sidebar

Ask A Question

Stats

  • Questions 495k
  • Answers 495k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Firstly you ought to stop using 'LanguageCode' to name just… May 16, 2026 at 11:26 am
  • Editorial Team
    Editorial Team added an answer You could use union: select * from table where table_id… May 16, 2026 at 11:26 am
  • Editorial Team
    Editorial Team added an answer Ok, heres the scoop. The issue is that the field… May 16, 2026 at 11:26 am

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Related Questions

Visual Studio C# 2008 Windows XP 32 bit I have developed a windows project
Hey, This is my scenario: Using visual studio 2008. Project is in c# Using
We are developing customized installer using visual studio 2008 installer project. The requirement which
I am using Visual Studio 2008 SP1. My project is in C#. When I
I have a big project I am working on right now using Visual Studio
I am using working on a c++ application in Visual studio 2008 I have
I have a problem with a C# ASP .NET project in Visual Studio 2008
I'm developing a website using SiteFinity in Visual Studio 2008. This is a web
I'm having an issue with a Visual Studio 2008 web application project where changes
I have an existing Visual C++ project using MFC that I'm running within Visual

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.