Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@sources.redhat.com Delivered-To: mailing list cygwin@sources.redhat.com Message-ID: <3B74108C.4090106@ece.gatech.edu> Date: Fri, 10 Aug 2001 12:49:16 -0400 From: Charles Wilson User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.2) Gecko/20010713 X-Accept-Language: en-us MIME-Version: 1.0 To: Mirko Vogel CC: cygwin@cygwin.com Subject: Re: How to build a static linked library References: <01df01c121ba$1d86c610$37fe0280@is.cs.cmu.edu> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Mirko Vogel wrote: > Hello, > > when I tried to link my library with the -shared flag, the linker says, that > _bss_end__, _bss_start__, _data_end__ and __data_start__ are not defined. As > far as I understood the information I found in the mailing-list-archive, > this is, since -shared has different meaning on Win32 and Unix/Linux: On > Windows, it created a dynamic linked library and on Unix a static linked > one. Wrong. -shared creates a shared library on both platforms (.so on unix, dll on windows) [ it's a little more complicated than that on windows, but that's the basic idea ] > > Now, I want to create a static linked library for Win32; How do I? don't use -shared. for that matter, don't "link" using gcc or ld. Just as on unix, use "ar" to create an "archive" (static lib). You are really asking very basic unix type "howto" questions, not cygwin-specific ones. Please take them to a more appropriate venue. --chuck -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/