DLLs (Dynamic Link Libraries) on Windows are supported for MS-VC++
and can be built for the compound kernel libraries of
Geant4 (see Section 6.1.2 of the
Installation Procedure of this Guide for a dissertation on
global/compound libraries).
The libraries can be built issuing the command:
make dll
from the directory $G4INSTALL/source.
Then, to build any application making use of the installed DLLs,
the environment variable G4LIB_USE_DLL must be set in the
environment.
Once the application is built, it is required to specify to the
system the path where the DLLs are installed. To do so, add the
absolute path (in Cygwin format) of the DLLs installation directory
to the PATH variable; for example:
export PATH=$PATH:/usr/local/geant4/lib/$G4SYSTEM
You may then be able to run successfully your application.