How to use CPPUnit on VC71

zhaozj2021-02-16  63

Struggling for an afternoon, only CPPUnit got on VC6.0. faint.

One should pay attention: Compilation switch / MLD or / mL is changed to / MDD or / MD.

Also pay attention to opening the RTTI, otherwise it will run an exception.

However, there is still no problem in .NET 2003, the error message looks still / ml / md problem, however, I have modified this compilation option still does not solve the problem.

depressed.

-------------------------------------------------- -------------

Finally, it is necessary to recompile CPPUnit in VC7.1, and cannot be mixed with VC6.0. I didn't find this problem before?

It also found that VC7.1 is very strong, when compiled, cppunit_assert_equal (12, 13) actually compiled failed, the reason is that this assertion is false during compilation, just strange, here is not a standard library assert, compile If you think this is an assertion? Just only with the Assert inside the flag?

转载请注明原文地址:https://www.9cbs.com/read-19649.html

New Post(0)