empty filename in #include

How to fix c/c++ error : empty filename in #include.

Description


Missing filename after preprocessor directive #include

Causes


An #include directive lacks the required filename.

Example


empty filename in #include
empty filename in #include

Output


output: empty filename in #include
output: empty filename in #include

How to fix it ?


To resolve this error, add the header filename after #include.

syntax


  • #include <filename>
  • #include "filename"


See also


Subscribe to our channel.

Leave a Reply

Your email address will not be published. Required fields are marked *