Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to add an external folder with header files (include folder) to a Visual Studio project?

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"
like image 838
mbilyanov Avatar asked Oct 24 '25 16:10

mbilyanov


1 Answers

You can add it in

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

like image 164
InUser Avatar answered Oct 26 '25 06:10

InUser



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!