delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/03/04/01:06:50

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-ID: <5f080767050303220646fca54b@mail.gmail.com>
Date: Fri, 4 Mar 2005 11:36:17 +0530
From: Pradip Jadav <pradipjadav AT gmail DOT com>
Reply-To: Pradip Jadav <pradipjadav AT gmail DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Make a Shared Library using Makefile
In-Reply-To: <Pine.GSO.4.61.0501270956540.23972@slinky.cs.nyu.edu>
Mime-Version: 1.0
References: <5f08076705012702164bfcacd9 AT mail DOT gmail DOT com> <41F8CA62 DOT 3B4B44CB AT dessent DOT net> <Pine DOT GSO DOT 4 DOT 61 DOT 0501270942470 DOT 23972 AT slinky DOT cs DOT nyu DOT edu> <Pine DOT GSO DOT 4 DOT 61 DOT 0501270956540 DOT 23972 AT slinky DOT cs DOT nyu DOT edu>
X-IsSubscribed: yes

And ya "Dllexport and Dllimport"  are required in source code???? I
mean should include in my own header files?
I read that ----

""The main problems are caused by the fact that Windows DynamicLinked
Libraries (DLL s) assume some specific information to be introduced in
the source code directly, while the UNIX DynamicLinked share Libraries
don t need any "special information" in the source""

so i have to change source code ???I mean have to add "special
information" like  Dllexport and Dllimport ???

waiting for reply...


On Thu, 27 Jan 2005 09:57:46 -0500 (EST), Igor Pechtchanski
<pechtcha AT cs DOT nyu DOT edu> wrote:
> On Thu, 27 Jan 2005, Igor Pechtchanski wrote:
> 
> > On Thu, 27 Jan 2005, Brian Dessent wrote:
> >
> > > Pradip Jadav wrote:
> > >
> > > > example.dll : example.c
> > > >         ${CXX} $< ${CXXFLAGS} -shared -fPIC -L. -lexample
> -Wl,-soname,$@ -o $@
> > >
> > > You shouldn't use "-fPIC" or "-Wl,soname" as far as I know.
> >
> > -fPIC is ignored (and there's a warning about it), and -Wl,soname is
> > redundant but harmless, AFAIK.  Another option that might help is
> > -Wl,-out-implib,$@.a, so that the DLL can be linked with via an import
>   ^^^^^^^^^^^^^^^^^^^^
> Make that -Wl,--out-implib,$@.a (I thought I'd checked it before sending
> off the e-mail, but apparently not).
> 
> > library later.
> > 	Igor
> 
> -- 
> 				http://cs.nyu.edu/~pechtcha/
>       |\      _,,,---,,_		pechtcha AT cs DOT nyu DOT edu
> ZZZzz /,`.-'`'    -.  ;-;;,_		igor AT watson DOT ibm DOT com
>      |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
>     '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!
> 
> "The Sun will pass between the Earth and the Moon tonight for a total
> Lunar eclipse..." -- WCBS Radio Newsbrief, Oct 27 2004, 12:01 pm EDT
> 
> --
> Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
> Problem reports:       http://cygwin.com/problems.html
> Documentation:         http://cygwin.com/docs.html
> FAQ:                   http://cygwin.com/faq/
> 
> 

-- 
With Best Regards
Pradip K. Jadav

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019