Boost logo

Boost :

From: Robert Ramey (ramey_at_[hidden])
Date: 2005-09-24 11:50:51

I am making a test program in order to test the operation of the
library when serializable type is serialized from within a dynamically
loaded DLL.

I've made a DLL which serializes to a polymorphic_?archive.

I'm going to make a test program which calls the DLL.

Here are my questions:


My DLL has included <boost/test/test_tools.hpp> and
test tool macros. Things compile fine. When I try to link I get a failure
because I've got not test_main - I'm using the Test Execution Monitor.
Now that I think about it - its not clear at all how to address this.

Suppose the above is resolved. I run my test and I get a failure
in the DLL, will the exception propagate across the DLL interface
into the main executable? I would hope so buf I don't know for sure.


Assuming the above issues are resolved I will have two program
modules: test_dll_main and test_dll_A (dll to serialize class A).
Not each bjam target lands in its own directory of the form


I would guess that the dll lands in


So in my main test module I would need something like

dlopen or LoadLibrary
which is going to be pretty inconvenient


make sure that the test_dll is placed in the same target directory as
test_main - which I don't know how to make bjam do.

Is there any information on how to go about building and testing DLLS/Shared

Robert Ramey

Boost list run by bdawes at, gregod at, cpdaniel at, john at