Compiler Error C2130
Visual Studio 2015
The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.
The latest version of this topic can be found at Compiler Error C2130.
line expected a string containing the filename, found 'token'
The optional file name token following #line linenumber must be a string.
The following sample generates C2130:
// C2130.cpp
int main() {
#line 1000 test // C2130
#line 1000 "test" // OK
}
Show: