g++ static library dependency chain
-
Hi!
Suppose I created a static library
libX.a, which is in directorysome_path.Now I want to create another static library
libY.aat the same directory, and I want to "link"libX.aintolibY.a, i.e., all the symbols inlibX.ato be somehow copied intolibY.a. This way, when I linklibY.ato a programZ, I do not need to linklibX.atoZtoo.I know I could
arevery single symbol oflibX.aintolibY.a, but I would like to refer tolibX.a, and not to its symbols directly.Does anyone know how to do it using
g++?Thanks
-
Hi!
Suppose I created a static library
libX.a, which is in directorysome_path.Now I want to create another static library
libY.aat the same directory, and I want to "link"libX.aintolibY.a, i.e., all the symbols inlibX.ato be somehow copied intolibY.a. This way, when I linklibY.ato a programZ, I do not need to linklibX.atoZtoo.I know I could
arevery single symbol oflibX.aintolibY.a, but I would like to refer tolibX.a, and not to its symbols directly.Does anyone know how to do it using
g++?Thanks