delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/01/27/06:00:25

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: <41F8CA62.3B4B44CB@dessent.net>
Date: Thu, 27 Jan 2005 03:02:58 -0800
From: Brian Dessent <brian AT dessent DOT net>
Organization: My own little world...
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: Make a Shared Library using Makefile
References: <5f08076705012702164bfcacd9 AT mail DOT gmail DOT com>
X-IsSubscribed: yes
Reply-To: cygwin AT cygwin DOT com

Pradip Jadav wrote:

> I had posted one mail few days ago ,but didn't got the reply..  ok no

Maybe because this is covered in the users guide and referenced in the
FAQ?  <http://cygwin.com/cygwin-ug-net/dll.html>

> CXX = g++
> CXXFLAGS = -g -O2 -I../../include -I. -Wall -Wno-sign-compare
> -Wno-unknown-pragmas -Wno-format -D_GNU_SOURCE
> example.dll : example.c
>         ${CXX} $< ${CXXFLAGS} -shared -fPIC -L. -lexample -Wl,-soname,$@ -o $@
> clean:
>         rm -f libexample.dll example.dll

You shouldn't use "-fPIC" or "-Wl,soname" as far as I know.

> Also i m having all libraries for my .c file.. So my query is that "
> Is it the right way to create a DLL using such makefile?? ", Or is
> there any other way to create a DLL ??????? I know i asked this query
> earliar but i have given the way at which i m going to create a DLL
> file.. Any help will be appreciated..

You haven't said whether what you have tried is working or not.  You
haven't explained exactly how it is failing and what errors you are
getting if it is not working.  If you want help you need to be more
specific.

Brian

--
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