delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/01/27/05:43:29

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: <5f08076705012702164bfcacd9@mail.gmail.com>
Date: Thu, 27 Jan 2005 15:46:00 +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: Make a Shared Library using Makefile
Mime-Version: 1.0
X-IsSubscribed: yes

Ok Guys ,
I had posted one mail few days ago ,but didn't got the reply..  ok no
problem .. The problem may with the way, I was compiling. But here i m
presenting a problem which is regarding " To create a shared Library".
As we know shared library created in Linux are in " .SO" extension.
Here i m giving a Makefile which creates a .so file in Linux-------
CXX = g++
CXXFLAGS = -g -O2 -I../../include -I. -Wall -Wno-sign-compare
-Wno-unknown-pragmas -Wno-format -D_GNU_SOURCE
example.so : example.c
        ${CXX} $< ${CXXFLAGS} -shared -fPIC -L. -lexample -Wl,-soname,$@ -o $@
clean:
        rm -f libexample.so example.so

.......And  as told in previous query , i m going to create shared
library in windows(i.e. DLL ) using our cygwin. I m using Makefile in
cygwin as---

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
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..
Waiting for reply
-- 
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