How to produce shared inter-library with static library?
From:
yuan zheng
Subject:
How to produce shared inter-library with static library?
Date:
Fri, 7 Jan 2011 16:00:14 +0800
Hello, everyone: I want to produce a shared inter-library on mingw32 on winxp. But it prompted that "can not link to static lib archive" and then generated a static lib. I have use the options "-no-undefined -shared".
the print info: ------------------------------------------------------------------------------------------------------------------------------
*** Warning: This system can not link to static lib archive C:/MinGW/lib/libbfd la. *** I have the capability to make that library automatically link in when *** you link to this library. But I can only do this if you have a
*** shared version of the library, which you do not appear to have. libtool: link: rm -fr .libs/libcommon.a .libs/libcommon.la .libs/libcommon.lai
*** Warning: linker path does not have real file for library -ldl.
*** I have the capability to make that library automatically link in when *** you link to this library. But I can only do this if you have a *** shared version of the library, which you do not appear to have *** because I did check the linker path looking for a file starting
*** with libdl and none of the candidates passed a file format test *** using a file magic. Last file checked: c:/MinGW./lib/libdl.a
*** Warning: linker path does not have real file for library -liberty. *** I have the capability to make that library automatically link in when
*** you link to this library. But I can only do this if you have a *** shared version of the library, which you do not appear to have *** because I did check the linker path looking for a file starting *** with libiberty and none of the candidates passed a file format test
*** using a file magic. Last file checked: /usr/lib/libiberty.a *** The inter-library dependencies that have been dropped here will be *** automatically added whenever a program is linked with this library *** or is declared to -dlopen it.
*** Since this library must not contain undefined symbols, *** because either the platform does not support them or *** it was explicitly requested with -no-undefined, *** libtool will only create a static version of it.
------------------------------------------------------------------------------------------------------------------------------
And then it generated "libcommon.a", rather than "libcommon.dll" which I want.
How can I do to get what I want?
thanks, yuanzheng.
[Prev in Thread]
Current Thread
[Next in Thread]
How to produce shared inter-library with static library?,
yuan zheng<=