2

I would like to include an header in all cpp files of my project without to change all cpp files manually in visual studio. Does someone can help me ?

I need this feature cuz I will use Visual Leaks Detector and I need to include "vld.h" in all cpp files of a huge project.

I know that I can do that with gcc/make (Is there any way to include a header file in all C or CPP file automatically?)

Community
  • 1
  • 1
John Smith
  • 771
  • 4
  • 11
  • 25

1 Answers1

8

There is /FI[name]: Force include (equivalent to -include for gcc) in
Configuration properties / C/C++ / Advanced / Forced Include

Jarod42
  • 203,559
  • 14
  • 181
  • 302