http://www.perlmonks.org?node_id=995519


in reply to XMl-Parser build failed on windows X64 with VStuido10

I would expect that at least some (and probably all) of those "unresolved external symbol" errors would be resolved by your libexpat.lib ... but apparently that's not the case.

Is your libexpat.lib an import lib for a dll ?
If so, then I think it should resolve those symbols. But, if it's a static library, then it won't resolve those symbols (because the "imp" part will be missing).

I guess another possibility is that your libexpat.lib is too old, but I think that's unlikely.
Try doing a search of libexpat.lib for the strings "XML_SetCommentHandler", "imp__XML_SetCommentHandler" and "imp_XML_SetCommentHandler". Are *any* of those strings found ? If so, which one(s) ?
It's the (first and) last of those 3 that needs to be found for you. However, in the libexpat import library that I looked at, it was the first 2 that could be found - so I think there's at least a chance that the difference in the number of underscores (1 versus 2) between the "imp" and the "XML" is bringing you undone.

If "imp_XML_SetCommentHandler" *does* exist in libexpat.lib, how many leading underscores come before "imp" ?

Cheers,
Rob

Replies are listed 'Best First'.
Re^2: XMl-Parser build failed on windows X64 with VStuido10
by bulk88 (Priest) on Sep 25, 2012 at 17:15 UTC
    Use MS dumpbin on the .lib file. Much cleaner than use a text editor.
Re^2: XMl-Parser build failed on windows X64 with VStuido10
by Anonymous Monk on Feb 09, 2018 at 11:00 UTC
    I have first and last occurance in my lib file,please help how to resolve this issue
      I have first and last occurance in my lib file,please help how to resolve this issue

      Do you also have all of the "unresolved external symbol" errors in between the first and last occurrences ?
      Could you please provide the output of running  perl -V
      Are you actually using Visual Studio 10 as your C compiler ? (Assuming that you are using a Microsoft Compiler, the output of running  cl /? might also be useful.)

      Cheers,
      Rob