question about exes and dlls

Added by Kevin Thacker almost 6 years ago

I've got an exe that depends on a number of dlls.

what is the correct jam setup to do this?

currently I have a exe jam file that includes the jam files of the dlls.

this ensures they are built in the correct order and that they are built. I also want to be able to build any dlls individually and their dependencies to be built if required.

is there another way which is more correct?


Replies (3)

RE: question about exes and dlls - Added by Joshua Jensen almost 6 years ago

Are those DLLs intended to be implicitly linked or explicitly linked?

Having an exe Jamfile that includes the Jamfiles of the DLLs does not guarantee order especially when the build is parallel.

Do you have an example Jamfile?

-Josh

RE: question about exes and dlls - Added by Kevin Thacker almost 6 years ago

I have attached a test case.

In this case there are 3 dlls and 1 exe.

dll1 and dll2 in this case are dlls that the exe loads. So it's ok if they are built out of order.

coredll is used by exe, dll1 and dll2.

Think of it as a dll conataining core functions that they can all use (e.g. core string library).

the cpps themselves are empty stubs just to show the setup.

buildtest.zip (2.41 KB)

RE: question about exes and dlls - Added by Joshua Jensen almost 6 years ago

I have attached an updated test case.

Have a look at it and ask questions if you have any.

-Josh

(1-3/3)