[Expat-bugs] [ expat-Bugs-615272 ] Expat 1.95.5 static library name

SourceForge.net noreply at sourceforge.net
Sun Jan 19 10:58:47 EST 2003


Bugs item #615272, was opened at 2002-09-26 18:51
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=110127&aid=615272&group_id=10127

Category: None
Group: Feature Request
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Karl Waclawek (kwaclaw)
Summary: Expat 1.95.5 static library name

Initial Comment:
Expat 1.95.5 on Win32 using MSVC.

I think its great that you include a static library now!  It 
would be more convenient for our build environment 
though if you called the static .lib files something 
different than the DLL stub .lib files so that they can live 
in the same directory. Of course, anyone building expat 
could do this, but it would be nice to have it this way out 
of the box. You could then move these files into 
the "Libs" directory, and delete the "StaticLibs" directory.

For other libraries, I've seen "static" appended to the 
name.  Another thing that is often done with MSVC 
static libraries is to have multiple version based on how 
you link with the CRT - /MT (Multithreaded) or /MD 
(Multithreaded DLL) - and to append MT or MD to the 
name.  This way you can use the appropriate static 
library depending on your situation. It's also common to 
keep everything in one .dsp, and use multiple 
configurations.  So instead of 4 .dsp files, you'd have 
1 .dsp with the configurations:

Win32 Debug DLL
  (libexpat.dll and stub libexpat.lib)
Win32 Debug Static MT
  (static libexpatMT.lib)
Win32 Debug Static MD
  (static libexpatMD.lib)

Win32 Release DLL
  (libexpat.dll and stub libexpat.lib)
Win32 Release Static MT
  (static libexpatMT.lib)
Win32 Release Static MD
  (static libexpatMD.lib)

Win32 Unicode Debug DLL
  (libexpatw.dll and stub libexpatw.lib)
Win32 Unicode Debug Static MT
  (static libexpatwMT.lib)
Win32 Unicode Debug Static MD
  (static libexpatwMD.lib)

Win32 Unicode Release DLL
  (libexpatw.dll and stub libexpatw.lib)
Win32 Unicode Release Static MT
  (static libexpatwMT.lib)
Win32 Unicode Release Static MD
  (static libexpatwMD.lib)

It would also be nice if instead of needing to 
define "_STATIC",  it was something a little more 
specific like "_EXPAT_STATIC" or even "XML_STATIC".

Thanks!

----------------------------------------------------------------------

>Comment By: Karl Waclawek (kwaclaw)
Date: 2003-01-19 13:58

Message:
Logged In: YES 
user_id=290026

I didn't find a good way to change the project configuration.
Each alternative has drawbacks, so let's leave it as is.

----------------------------------------------------------------------

Comment By: Karl Waclawek (kwaclaw)
Date: 2002-11-22 13:25

Message:
Logged In: YES 
user_id=290026

For the 1.95.6 release I have made the following 
changes:

- The static projects now build libexpatMT.lib and
   libexpatwMT.lib by default (i.e. linked to the 
   multithreaded runtime Dll)
- in ../Win32/ReadMe.txt there are instructions for
   how to build the static libs linked to the two other
   versions of the runtime lib (single-threaded and
   multi-threaded static)
- The naming conventions follow the MS standard
   (using the MT, ML, MD postfixes)
- _STATIC was changed to XML_STATIC

I have not had time to change to a more project
configuration oriented setup (as described in the
original feature request note).

----------------------------------------------------------------------

Comment By: Karl Waclawek (kwaclaw)
Date: 2002-09-26 19:39

Message:
Logged In: YES 
user_id=290026

Since you already seem to know exactly what to do,
why don't you submit a patch with these changes?
We would certainly have a look at it, and there is a good 
chance it could be included in the next release.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=110127&aid=615272&group_id=10127



More information about the Expat-bugs mailing list