[Expat-bugs] [ expat-Bugs-609603 ] v1.95.5 Win32 static lib symbol problem

SourceForge.net noreply at sourceforge.net
Tue Jan 28 05:58:04 EST 2003


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

Category: Documentation
Group: None
Status: Open
Resolution: None
Priority: 6
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Fred L. Drake, Jr. (fdrake)
Summary: v1.95.5 Win32 static lib symbol problem

Initial Comment:
I just switched over to using the Win32 static lib 
version of Expat in my MSVC++ application.

Now, it appears that the following line:

#define _STATIC

is required before

#include "expat.h"

otherwise, the link fails.



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

Comment By: Mike Roskanuk (mikerosky)
Date: 2003-01-28 14:58

Message:
Logged In: YES 
user_id=698797

Fine. BTW why you decided to use Windows installer, when 
it's "just a few files" a you don't need to do anything with 
system as .dll dependencies, registry modifications etc? 
IMHO .zip archive should be sufficient ...

P.S. FYI: I compiled and use expat on Windows CE 3.0 
with no problem. Thanks 4 good job!


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

Comment By: Fred L. Drake, Jr. (fdrake)
Date: 2003-01-28 14:21

Message:
Logged In: YES 
user_id=3066

Looks like that file doesn't get installed by the Windows 
installer; it only exists in the CVS repository.  I'll add the 
information to the general documentation, or add a separate 
HTML file as part of the docs with a link from the main 
reference.html.

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

Comment By: Mike Roskanuk (mikerosky)
Date: 2003-01-28 11:44

Message:
Logged In: YES 
user_id=698797

Sorry - where is that Readme? I can't find it (in 
expat_win32bin_1_95_6.exe). Anyway - IMHO it should be 
mentioned in Doc/reference.html [Building and Installing].


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

Comment By: Karl Waclawek (kwaclaw)
Date: 2003-01-23 21:53

Message:
Logged In: YES 
user_id=290026

The static linking for Windows is documented in
the ReadMe file under the Win32 directory.

But is that enough, or should some documentation
be added elsewhere - at least the fact that the
global macro XML_STATIC needs to be defined?

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

Comment By: Fred L. Drake, Jr. (fdrake)
Date: 2003-01-23 21:39

Message:
Logged In: YES 
user_id=3066

Static linking on Unix is a non-starter -- every platform
handles all linking differently, and developers hate their
lives if they have to go beyond writing code to actually
linking an application together.  There's nothing
Expat-specific in this sea of misery.

I don't know what a Windows programmer needs to be told, so
someone will have to tell me, or provide a patch.  It sounds
like there's a problem there, but I've no idea offhand if
that's unique to the static Expat libraries, or endemic to
Windows.

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

Comment By: Karl Waclawek (kwaclaw)
Date: 2002-09-15 18:50

Message:
Logged In: YES 
user_id=290026

Either that, or you define _STATIC in the Project Settings.
Have a look at the "elements" demo project, it is
statically linked.

However, I think it is not enough to just have the demo
project, we should document this as well.

I'll assign this to Fred, since the documentation
needs to include static linking instructions for
Unix systems too.

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

Comment By: Nobody/Anonymous (nobody)
Date: 2002-09-15 18:29

Message:
Logged In: NO 




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

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



More information about the Expat-bugs mailing list