[ expat-Bugs-414993 ] xmlfile.obj : error LNK2001: unresolved

noreply@sourceforge.net noreply@sourceforge.net
Fri May 17 18:21:01 2002


Bugs item #414993, was opened at 2001-04-09 13:39
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=110127&aid=414993&group_id=10127

Category: Build control
Group: None
>Status: Closed
>Resolution: Invalid
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Greg Stein (gstein)
Summary: xmlfile.obj : error LNK2001: unresolved

Initial Comment:
I'm unable to resolve this problem.  I don't which 
file is missing for this error to show up. Here is a 
sample of the error message.  I am compiling with MS 
VC++ 6.0.  I am attempting to create the perl module 
that incorporates expat.  The Perl version is 5.005-3 
from ActiveState.

Expat.obj : error LNK2001: unresolved external symbol 
_XML_DefaultCurrent
Expat.obj : error LNK2001: unresolved external symbol 
_XML_GetSpecifiedAttributeCount
Expat.obj : error LNK2001: unresolved external symbol 
_XML_GetCurrentByteCount
Expat.obj : error LNK2001: unresolved external symbol 
_XML_SetStartCdataSectionHandler
Expat.obj : error LNK2001: unresolved external symbol 
_XML_SetEndCdataSectionHandler
..\blib\arch\auto\XML\Parser\Expat\Expat.dll : fatal 
error LNK1120: 55 unresolved externals
NMAKE : fatal error U1077: 'link' : return code '0x460'
Stop.
NMAKE : fatal error U1077: 'cd' : return code '0x2'
Stop.


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

>Comment By: Greg Stein (gstein)
Date: 2002-05-17 18:20

Message:
Logged In: YES 
user_id=6501

This is a problem with the Perl wrappers, not Expat itself.

Closing as invalid.

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

Comment By: Nobody/Anonymous (nobody)
Date: 2002-03-12 05:51

Message:
Logged In: NO 

Hi,

I have a similar problem. I would like to run the outline.c 
file that is given as an example with the expat 
documentation. I include <expat.h> (I first had to add 
expat.h to my library, and also xmlparse.h that is used in 
the c-program)
With compiling, everything goes great,
(no problems), but to execute it, I receive the
following errors:

outline.obj : error LNK2001: unresolved external symbol 
__imp__XML_GetCurrentLineNumber
outline.obj : error LNK2001: unresolved external symbol 
__imp__XML_ErrorString
outline.obj : error LNK2001: unresolved external symbol 
__imp__XML_GetErrorCode
outline.obj : error LNK2001: unresolved external symbol 
__imp__XML_Parse
outline.obj : error LNK2001: unresolved external symbol 
__imp__XML_SetElementHandler
outline.obj : error LNK2001: unresolved external symbol 
__imp__XML_ParserCreate
Debug/outline.exe : fatal error LNK1120: 6 unresolved 
externals
Error executing link.exe.

outline.exe - 7 error(s), 0 warning(s)

I have version 1.95.2

greetings and thanks for your help.



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

Comment By: Fred L. Drake, Jr. (fdrake)
Date: 2001-07-20 20:56

Message:
Logged In: YES 
user_id=3066

Which version of expat was this using?  1.95.x, or the latest CVS sources?

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

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