I'm using cxxtest4.0.3 under vc6 to do a test. At first, the compiler report strcmp is not a member of std. After I added the CXXTEST_OLD_STD macro to project settings, the compiler report missing type info of string at the line "CXXTEST_STD(string) _s;".
How should I set the macro define? thanks in advanced.
Here is the sample code:
#include <cxxtest/TestSuite.h>
class CSimpleTest : public CxxTest::TestSuite
{
public:
void testCxx(void){TS_ASSERT(10 == 0); }
};
Here is the error message:
error C2039: 'strcmp' : is not a member of 'std'
The line in cxxtest\testmain.h report the error message:
if ((CXXTEST_STD(strcmp)(argv[i],"-h")==0) || (CXXTEST_STD(strcmp)(argv[i],"--help")==0)) {