I want to create a static library.
thanks and regards,

On 8/31/06, Michael Gerdau <mgd@technosis.de> wrote:
>    There is another issue. I searched the FAQ but but could not find a
> suitable answer. I have compiled my source code to form .obj. now I want to
> link the objs to form a .lib. Which linker flag should I use?
> i used -shared but it did not work.

What type of lib do you wish to create ?
- shall it be a static lib ?
  * suiteable for MSVC ? - don't know OTOH
  * suiteable for MinGW ? - use ar and ranlib
- shall it be an importlib ?
  see http://www.mingw.org/MinGWiki/index.php/CreateImportLibraries

In any way: '-shared' does create a shared object (DLL).

Vote against SPAM - see http://www.politik-digital.de/spam/
Michael Gerdau       email: mgd@technosis.de
GPG-keys available on request or at public keyserver

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo

MinGW-users mailing list

You may change your MinGW Account Options or unsubscribe at: