You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-users@xerces.apache.org by Larry Lindstrom <la...@hotmail.com> on 2012/08/06 19:20:39 UTC

Newbie - MS Visual Studio - Which projects do I need?

Hi Folks:

   Developing on Win 7 Ultra, Visual Studio 2010, C++.  

   As is my habit with Unix or Windows, when I have source code and clear
instructions, I prefer to build utilities from source.  The xerces 3.1.1
build went fine.  

   I'm going to work my way through some Xerces examples.  

   The first project is to run 

      xercesc::XMLPlatformUtils::Initialize(); 

   and 

      xercesc::XMLPlatformUtils::Terminate();

   Not surprisingly, a build resulted in complaints from the linker of
unresolved external symbols.  For xercesc_3_1::XMLPlatformUtils::Initialize,
xercesc_3_1::XMLPlatformUtils::Terminate and
xercesc_3_1::XMLUni::fgXercescDefaultLocale.  

   There are a bunch of Visual Studio projects in directories under
Build/Win32/VC10/Debug.  

   I'm not finding guidance on which of these projects I need to add to my
build.  

   I've added all of these solutions, and the build is successful.  Add the
DLL and the sample ran.  

   The "XMLPlatformUtils Class Reference" page 
http://http://xerces.apache.org/xerces-c/apiDocs-3/classXMLPlatformUtils.html#_details
http://http://xerces.apache.org/xerces-c/apiDocs-3/classXMLPlatformUtils.html#_details 
has a lot of useful information, but I don't see what project I need to
include to use it.  

   Is there a resource to tell me what projects I need to add to my build?  

   Or is standard practice to include all of them?  

      Thanks
      Larry

-- 
View this message in context: http://old.nabble.com/Newbie---MS-Visual-Studio---Which-projects-do-I-need--tp34262325p34262325.html
Sent from the Xerces - C - Users mailing list archive at Nabble.com.


Re: Newbie - MS Visual Studio - Which projects do I need?

Posted by Vitaly Prapirny <ma...@mebius.net>.
Hi Larry,

Larry Lindstrom wrote:
>     I'm not finding guidance on which of these projects I need to add to my
> build.

You can organize your project the same way as the sample projects under 
projects\Win32\VC10\xerces-all, i.e. SAX2Count or DOMTest.

Good luck!
	Vitaly