Menu

Building TestRunner(1.5.5) in Release Mode?

stone
2001-06-15
2001-06-18
  • stone

    stone - 2001-06-15

    When I tried to compile TestRunner(CppUnit 1.5.5) with ms
    Visual C++ 6.0 in Release mode I got the following error:

    ================================================
    Linking...
    msvcprt.lib(MSVCP60.dll) : error LNK2005: "private: bool
    __thiscall std::basic_string<char,struct
    std::char_traits<char>,class std::allocator<char>
    >::_Grow
    (unsigned int,bool)" (?_Grow@?$basic_string@DU?
    $char_traits@D@std@@V?$allocator@D@2@@std@@AAE
    _NI_N@Z) already defined in cppunit.lib(TestSuite.obj)
    ..............................

    --------------------------
    my setup is as follows:
    windows nt4 sp4
    ms vsual c++ 6.0 sp5
    CppUnit 1.5.5

    What't the matter?

     
    • Baptiste Lepilleur

      The release mode configuration has not been set up yet.

      You should check the usual stuff when building for release mode and using some libraries:
      - all projects should use the same runtime library (c++/code generation). Probably Multithreaded DLL.
      - RTTI should be enabled for all projects (c++/language)

      You will probably have to define the correct link settings for most of the projects (use the debug conf. as a model). Don't forget to update the pre-link step in the sample to copy the TestRunner dll to the Release directory.

      Baptiste.

       
    • Anonymous

      Anonymous - 2001-06-15

      The other reply is correct, although I believe the exact problem is likely the use of different run time libraries. Makes CppUnit and your project use the exact same library (ie. MT DLL).

       
    • stone

      stone - 2001-06-18

      Thanks blep and gtownsend.
      Now I can compile TestRunner in release mode successfully.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.