Why 2 DLL names?

2003-12-22 Thread Roy Clemmons
Greetings,

Using Cygwin 1.5.5-1, I am porting a Unix shared library to Windows.
After making and linking the library with libtool, two DLLs were
created:

libxx.dll.a
cygxx-1.dll

I guess I was only expecting: libxx.dll.

Why were the 2 names generated and why the cyg prefix on one of
them?  Also, which one should I use?

Thank you for you patience with me as I learn the cygwin environment.

Roy

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



RE: Why 2 DLL names?

2003-12-22 Thread Gareth Pearce

 
 Greetings,
 
 Using Cygwin 1.5.5-1, I am porting a Unix shared library to Windows.
 After making and linking the library with libtool, two DLLs were
 created:
 
 libxx.dll.a
 cygxx-1.dll
 
 I guess I was only expecting: libxx.dll.
 
 Why were the 2 names generated and why the cyg prefix on one of
 them?  Also, which one should I use?


The first is not a dll - its an import library(I think?)
Cyg prefix is chosen to clearly delimit mingw dll's from cygwin dll's -
since, for example, zlib comes in both cygwin and mingw versions, and naming
them the same would cause conflicts.

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



Re: Why 2 DLL names?

2003-12-22 Thread Mark Blackburn
Roy Clemmons wrote:

Greetings,

Using Cygwin 1.5.5-1, I am porting a Unix shared library to Windows.
After making and linking the library with libtool, two DLLs were
created:
libxx.dll.a
cygxx-1.dll
 

libxx.dll.a is the import library
cygxx-1.dll is the dll
Read
http://cygwin.com/cygwin-ug-net/dll.html
for a more complete explanation.
I guess I was only expecting: libxx.dll.

Why were the 2 names generated and why the cyg prefix on one of
them?  Also, which one should I use?
Thank you for you patience with me as I learn the cygwin environment.

Roy

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



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


Re: Why 2 DLL names?

2003-12-22 Thread Roy Clemmons
libxx.dll.a is the import library
cygxx-1.dll is the dll

Read
http://cygwin.com/cygwin-ug-net/dll.html
for a more complete explanation.Thanks for the reply. Unless I missed
it, I still don't understand why the shared lib was created a cyg
prefix and a -1 suffix. But, be that as it may, can I rename the dll
to be the correct name?Roy

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



Re: Why 2 DLL names?

2003-12-22 Thread Max Bowsher
Roy Clemmons wrote:
 libxx.dll.a is the import library
 cygxx-1.dll is the dll

 Read
 http://cygwin.com/cygwin-ug-net/dll.html
 for a more complete explanation.Thanks for the reply. Unless I missed
 it, I still don't understand why the shared lib was created a cyg
 prefix and a -1 suffix.

cyg to identify it as a Cygwin-using DLL, to avoid possible conflicts with
a native-Windows version.

-1 to allow for ABI versioning. See the libtool docs, -version-info
option.

 But, be that as it may, can I rename the dll
 to be the correct name?Roy

No. For 2 reasons:

1) You cannot rename DLLs (and still expect them to work).

2) The name is already correct. It may not be what you were expecting, but
it is correct.

Max.


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