Static library including other static library

Andre andre at s-e-a-p.de
Wed Feb 26 13:28:06 PST 2014


Hi,

I created a static library "webbrowser.lib" which depends on the dsource
project WindowsAPI.

I compile my static library by this statement:
dmd main ... C:\D\WindowsAPI\dmd_win32_x32.lib -lib -of"webbrowser.lib"

I get a static library with my webbrowser coding and it seems
it als embedds the static library dmd_win32_x32.lib.
(=> I think so due to the huge filesize 4.812 KB)

While creating a bug report for Mono-D someone wrotes:
"Static libraries cannot be linked into other static libraries, nor do 
dmd, gdc, or ldc support doing so".

I am currently confused as it seems DMD can link static libraries
into other static libraries.

I also have a second project which is working with
my static library webbrowser.lib.

For me it seems a valid scenario to have a self contained static library
webbrowser.lib.

Do you know somethink about this?

Kind regards
André






More information about the Digitalmars-d-learn mailing list