-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Version 1.3.3 doesn't compile with MSVC 2003 #589
Comments
If the "prior version" was from 2013 then, well, a lot has changed in the last three years! In any case the line that would be causing your error is:
where From your error message it does look like I don't have access to a VS2003 compiler to test it with, but you might want to experiment, outside of Catch, reproducing the |
I think I've hit this same issue - but with VC++6 - see here The minimal example used to reproduce it was this: #define STR_CONCAT_IMPL(s1, s2) s1##s2
#define STR_CONCAT(s1, s2) STR_CONCAT_IMPL(s1, s2)
#define ANONYMOUS(x) STR_CONCAT(x, __LINE__)
struct Subcase
{
Subcase(const char* name, const char* file, int line) {}
operator bool() const { return true; }
};
#define MYMACRO(name) if(const Subcase & ANONYMOUS(AUTOGEN_VARIABLE_) = Subcase(name, __FILE__, __LINE__))
int main() {
MYMACRO("") {}
return 0;
} This was my conclusion:
|
Unless turning off edit and continue doesn't help with VS2003, I am going to close this soon. |
I'm using Catch in a legacy project that uses MSVC 2003. After updating Catch to v1.3.3 I now get these compiler errors:
error C2061: syntax error : identifier '__LINE__Var'
error C2072: 'catch_internal_Section' : initialization of a function
fatal error C1903: unable to recover from previous error(s); stopping compilation
It has something to do with the SECTION macro. The prior version of Catch was working great and I will revert back to that version for now. Here is the header info of the prior working version:
"Generated: 2013-02-19 08:44:57.311773"
The text was updated successfully, but these errors were encountered: