4

I have a main.cpp file that relies on a header file located in another location.

#include "C:\SierraChart\ACS_Source\sierrachart.h"

My project is in C:\dev\

I don't want to specify an explicit path in the include directive, is it possible to add that absolute path as an additional include directory?

so I can just use:

#include "sierrachart.h"
not2qubit
  • 14,531
  • 8
  • 95
  • 135
mbilyanov
  • 2,315
  • 4
  • 29
  • 49

2 Answers2

3

You can add it in

Project > Properties > C/C++ > General > Additional Include Directories

Casey
  • 10,297
  • 11
  • 59
  • 88
InUser
  • 1,138
  • 15
  • 22
0

I have a similar kind of issue, where I have added the path in the "Additional Include Directories", but then it still it says cannot open the source file.

  • Your answer could be improved with additional supporting information. Please [edit] to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers [in the help center](/help/how-to-answer). – Community Jun 27 '23 at 09:45