Ask Learn
Preview
Please sign in to use this experience.
Sign inThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
'directive': expected "FILENAME" or <FILENAME>
Directives such as #include or #import require a filename. To resolve the error, ensure the filename is valid and enclosed in either double quotes or angle brackets.
The following sample generates C2006:
// C2006.cpp
// compile with: /c
#include iostream // C2006
#include 'iostream' // C2006
#include <iostream> // OK
Please sign in to use this experience.
Sign in