Compiler Error C2005
#line expected a line number, found 'token'
The #line
directive must be followed by a line number.
The following sample generates C2005:
// C2005.cpp
int main() {
int i = 0;
#line i // C2005
}
Possible resolution:
// C2005b.cpp
int main() {
int i = 0;
#line 0
}
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for