MSVC Express Edition with Xalan/Xerces - linking .lib input files

Posted on 2004-11-01
Last Modified: 2010-04-24
Im trying to build a project using the new MSVC Expreess Edition ( and I'm trying to integrate the Xalan-C and Xerces-C libraries from Apache ( ,
Im having trouble linking the .lib files to my project, but I'm getting 40 unresolved externals which tells me the .lib files arent linking correctly.
I've tried adding the path to the .lib files  under Project > Properties > Configuration Properties > Linker > Input Additional Dependencies.
Doing this has not resolved the external dependency issues.
Can someone tell me whether this is the correct procedure for linking .libs?
Also, is it possible that the xerces and xalan libraries (built under MSVC 6 i presume) won't be compatible with MSVC .Net Express?
Thanks for any help.
Question by:blackfrancis75
    LVL 19

    Accepted Solution

    Could you provide some details like some of the specific unresolved symbol names and maybe some of your code?  Did you get xerces 2.5.0 rather than the 2.6.0?  Xalan uses the 2.5 version of xerces.  I was able to successfully build and run a bunch of the sample Xalan code that comes in the binary distribution.  I had no trouble using VC++ .NET Express 2005.  I put the path to the cerces and xalan library files in Project > Properties > Configuration Properties > Linker > General : Additional Library Directories and then put the lib file names in Project > Properties > Configuration Properties > Linker > Input : Additional Dependencies.
    LVL 19

    Expert Comment

    I should also ask what type of project you are using - is it a Win32 project (unmanaged code) or a .NET project (managed code)?  I started with empty Win32 projects and used the sample source files.
    LVL 5

    Author Comment

    Yes, I started with an empty Win32 project - I've been off this project for a bit so Ill dig it up and have a look.

    Featured Post

    What Should I Do With This Threat Intelligence?

    Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

    Join & Write a Comment

    The following diagram presents a diamond class hierarchy: As depicted, diamond inheritance denotes when two classes (e.g., CDerived1 and CDerived2), separately extending a common base class (e.g., CBase), are sub classed simultaneously by a fourt…
    In Easy String Encryption Using CryptoAPI in C++ ( I described how to encrypt text and recommended that the encrypted text be stored as a series of hexadecimal digits -- because cyphertext may…
    Internet Business Fax to Email Made Easy - With eFax Corporate (, you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
    In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor ( If you're interested in additional methods for monitoring bandwidt…

    746 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now