#11 [Win32] CppUnit as a DLL

closed
nobody
None
5
2002-03-27
2002-03-05
No

These sources are for Win32. I took the basic 1.6.2
version and added dllexport/dllimport
(BindingConfig.h) directives for making a DLL.
Notice: You will get some compiler warnings (VC6),
these are OK.

Discussion

  • Mike Krimerman

    Mike Krimerman - 2002-03-05

    VC6 sources

     
  • Anders Bremberg

    Anders Bremberg - 2002-03-19

    Logged In: YES
    user_id=490356

    Hello
    We have tried your dll-version but cannot
    get to work without modifying the testassert.h with;

    extern "C" __declspec(dllexport) void
    assertImplementation( bool condition,
    std::string
    conditionExpression = "",
    long lineNumber =
    Exception::UNKNOWNLINENUMBER,
    std::string fileName =
    Exception::UNKNOWNFILENAME );

    extern "C" __declspec(dllexport) void
    assertNotEqualImplementation( std::string expected,
    std::string actual,
    long lineNumber =
    Exception::UNKNOWNLINENUMBER,
    std::string fileName
    = Exception::UNKNOWNFILENAME );

    Is there something else we have missed or ?

     
  • Mike Krimerman

    Mike Krimerman - 2002-03-20

    Logged In: YES
    user_id=437333

    You are right. These functions should be marked as
    exportable as well. This can be done by including the
    BindingConfig.h file in TestAssert.h and prefix every
    exportable function with __DLL_CLASS_BINDING macro (see
    other header files I modified).

     
  • Baptiste Lepilleur

    Logged In: YES
    user_id=196852

    A similar thing was done when adding CppUnit as DLL in the
    current CVS version.

     
  • Baptiste Lepilleur

    • status: open --> closed
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks