RE: .dll.a, .dll files and other questions

2002-12-06 Thread Scott A. Smith

 On Thu, Dec 05, 2002 at 05:19:27PM -0800, Hans Horn wrote:
those links on (http://cygwin.com/docs.html) describing how to build dlls
seem to be utterly outdated.
cgf wrote:
 Nope.  Recently updated.

After reading the above, I had a look hoping to find more (updated)
information on this DLL business. Am I looking at the same links?
The one for relocatable DLLs
http://cygwin.com/building-reloc-dlls.txt
is dated 1997, the one for helpful hints references Cygwin b17
http://cygwin.com/dll-hints.txt
and the one for more information doesn't work at all at the moment
http://www.cs.mu.oz.au/. I was told months ago on this list that 
use of dlltool was deprecated and no longer necessary at all, yet
that is commonly invoked in the above references. As
I recall, the latest dllhelpers does not even use dlltool? So I
am confused. Although I have muddled my way through building DLLs
with Cygwin, I cannot find the updated dox mentioned. Sorry, I simply
don't understand DLL's well enough myself to submit anything...
but I can say that dllhelpers did allow me to figure how to build
DLLs using what I believe to be the most modern means of doing so
with Cygwin/GCC.

Regards,
Scott 


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: .dll.a, .dll files and other questions

2002-12-06 Thread Hans Horn
Chris,

thanks a lot!
http://cygwin.com/cygwin-ug-net/dll.html seems to be indeed up-to-date!

However, I strongly recommend to wipe or update related sections on
http://cygwin.com/docs.html, just to avoid future confusions!

Now that we straightened that one out, we can get to more interesting
questions.

I want to build an dll that uses Win32 global hooks.
With the dll built under MS Visual Studio, I use dlltool on it to create a
.dll.a from it and link it with my app under cygwin, everything works!

When I build the dll directly under cygwin (what I really want to do, as I
don't have VisualStudio!) using the instructions from
http://cygwin.com/cygwin-ug-net/dll.html,
and link it with my app, it does NOT work!

Are there any restrictions under cygwin about the kinds of dlls that can be
built?

H.









--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: .dll.a, .dll files and other questions

2002-12-05 Thread Hans Horn
Elfyn,

those links on (http://cygwin.com/docs.html) describing how to build dlls
seem to be utterly outdated.
I was digging thru the doc trying to figure out how to build dlls myself and
found much of conflicting information.

can you point me to some info about to build dlls using state-of-the-art
cygwin/gcc?
in particular I'm interested in how to build dlls that use system wide win32
hooks.

thx a lot.
Hans


today's cygwin
Elfyn McBratney [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 Hi,

 Hi folks,
 
 Just had a couple of questions.  Attempting to head off a problem at
 the pass...
 
 When using gcc -shared, what is default output (ie. what is expected
from
 gcc -shared in order to read the .dlls/shared files) by Cygwin?

 Im not sure exactly what you mean. The gcc `-shared' option compiles
shared
 objects (in this case dll's). If you mean something like `gcc -shared
foo.o
 bar.o ...' then gcc expects object code.

 There's a section (few links at the bottom) in the online documentation
 (http://cygwin.com/docs.html) which goes through how to create dll's.

 
 Second question:  If g++ -shared is used will the output .dll/shared
 files be loadable and/or useable by Win32 api?
 
 Finally, I realize that if g++ -shared, if used, is likely going to
 generate name mangled .dlls that can not be read/loaded properly by the
 win32api.
 
 Is that still true for Cygwin?
 
 Thanks,
 
 Paul G.
 
 --
 Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
 Bug reporting: http://cygwin.com/bugs.html
 Documentation: http://cygwin.com/docs.html
 FAQ:   http://cygwin.com/faq/


 _
 Tired of spam? Get advanced junk mail protection with MSN 8.
 http://join.msn.com/?page=features/junkmail







--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: .dll.a, .dll files and other questions

2002-12-05 Thread Christopher Faylor
On Thu, Dec 05, 2002 at 05:19:27PM -0800, Hans Horn wrote:
those links on (http://cygwin.com/docs.html) describing how to build dlls
seem to be utterly outdated.

Nope.  Recently updated.

cgf
--
Please do not send me personal email with cygwin questions or observations.
Use the resources at http://cygwin.com/ .

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




.dll.a, .dll files and other questions

2002-11-29 Thread Paul G.
Hi folks,

Just had a couple of questions.  Attempting to head off a problem at the 
pass...

When using gcc -shared, what is default output (ie. what is expected from gcc -
shared in order to read the .dlls/shared files) by Cygwin?

Second question:  If g++ -shared is used will the output .dll/shared files be 
loadable 
and/or useable by Win32 api?

Finally, I realize that if g++ -shared, if used, is likely going to generate 
name 
mangled .dlls that can not be read/loaded properly by the win32api.

Is that still true for Cygwin?

Thanks,

Paul G.

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: .dll.a, .dll files and other questions

2002-11-29 Thread Elfyn McBratney
Hi,


Hi folks,

Just had a couple of questions.  Attempting to head off a problem at
the pass...

When using gcc -shared, what is default output (ie. what is expected from 
gcc -shared in order to read the .dlls/shared files) by Cygwin?

Im not sure exactly what you mean. The gcc `-shared' option compiles shared 
objects (in this case dll's). If you mean something like `gcc -shared foo.o 
bar.o ...' then gcc expects object code.

There's a section (few links at the bottom) in the online documentation 
(http://cygwin.com/docs.html) which goes through how to create dll's.


Second question:  If g++ -shared is used will the output .dll/shared
files be loadable and/or useable by Win32 api?

Finally, I realize that if g++ -shared, if used, is likely going to
generate name mangled .dlls that can not be read/loaded properly by the
win32api.

Is that still true for Cygwin?

Thanks,

Paul G.

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



_
Tired of spam? Get advanced junk mail protection with MSN 8. 
http://join.msn.com/?page=features/junkmail


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/