Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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 Reply-To: Pradip Jadav To: cygwin AT cygwin DOT com Subject: Make a Shared Library using Makefile Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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/