Re: Make a Shared Library using Makefile

2005-03-03 Thread Pradip Jadav
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

Re: Make a Shared Library using Makefile

2005-03-03 Thread Brian Dessent
Pradip Jadav wrote: 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

Re: Make a Shared Library using Makefile

2005-03-01 Thread Pradip Jadav
hello, I am back here... In the journey of making SHARED dll's, i have been lost somewhere in my path... but during these days i found a post searched in google like this... You are using some classes which are kept in some library. It is not enough to add h-file with these classes, We

RE: Make a Shared Library using Makefile

2005-01-27 Thread Dave Korn
-Original Message- From: cygwin-owner On Behalf Of Pradip Jadav Sent: 27 January 2005 10:16 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

Re: Make a Shared Library using Makefile

2005-01-27 Thread Brian Dessent
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

Re: Make a Shared Library using Makefile

2005-01-27 Thread Pradip Jadav
Ok first ,thanx for ur reply.. 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. Here i m going to explain u what actually i

Re: Make a Shared Library using Makefile

2005-01-27 Thread Igor Pechtchanski
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

Re: Make a Shared Library using Makefile

2005-01-27 Thread Igor Pechtchanski
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