How do I add to my include path

Rasmus Steen 0 Reputation points
2023-05-16T16:57:21.32+00:00

To make my code less cluttered I want to put all my header files into a folder I call include within my workspace, yet whenever I do this I recieve the fatal error: No such file or directory. I've added the include folder on include path on c_cpp_properties.json file but this doesn't seem to fix the issue. How do I ensure the compiler can find the files in the include folder. I use VS code

Developer technologies Visual Studio Setup
{count} votes

1 answer

Sort by: Most helpful
  1. Anna Xiu-MSFT 31,056 Reputation points Microsoft External Staff
    2023-05-18T08:56:46.9466667+00:00

    Hi @Rasmus Steen

    You are using Visual Studio Code, which is different from Visual Studio. The tag “Visual Studio Setup” is related to Visual Studio, for more questions about Visual Studio Code, we suggest you post it to the Stack Overview tagged visual-studio-code forum or GitHub repository where you would get professional support for this product.

    Thanks for your understanding.

    Sincerely,

    Anna


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment". 
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.