0

Can I have visual studio force an include of a header file on all files of a project? In other words, does it have the "-include" option like gcc?

Include header files using command line option?

I could not find it.

thank you.

gmmo
  • 2,577
  • 3
  • 30
  • 56

1 Answers1

0

The VC++ equivalent of GCC's -include filename is /FI filename.

This option has the same effect as specifying the file with double quotation marks in an #include directive on the first line of every source file specified on the command line, in the CL environment variable, or in a command file. If you use multiple /FI options, files are included in the order they are processed by CL.

Mike Kinghan
  • 55,740
  • 12
  • 153
  • 182