ISO C++ error from the test runner generated

26 views
Skip to first unread message

Arjun Suresh Raji

unread,
Mar 11, 2015, 2:31:50 AM3/11/15
to cxxtes...@googlegroups.com
Hi people,
I am getting strange errors from the test runner generated by cxxtestgen.pl. eg:

<error>
error: a brace-enclosed initializer is not allowed here before '{' token
error: invalid in-class initialization of static data member of non-integral type `CxxTest::List'
error: expected identifier before string constant
error: expected `,' or `...' before string constant
error: ISO C++ forbids declaration of `parameter' with no type
error: a brace-enclosed initializer is not allowed here before '{' token
error: invalid in-class initialization of static data member of non-integral type `CxxTest::List'
error: expected identifier before string constant
error: expected `,' or `...' before string constant
error: ISO C++ forbids declaration of `parameter' with no type
</error>

All the errors have the following common pattern like this.

static CxxTest::List Tests_function_name = { 0, 0 };
CxxTest::StaticSuiteDescription suiteDescription_function_name( "/path/to/my/cxxtest_testcase", 21, "function_name", suite_function_name, Tests_function_name );
Reply all
Reply to author
Forward
0 new messages