The Misadventures of Dan

Peer into the mind of Dan as he tries to build an MP3 Player for his PDA and searches for the next thing in his life be it an electrical engineering job or graduate school.

Friday, January 02, 2004

.:10:56:01 AM:.

Best Quotes of 2003


Tuesday, December 30, 2003

.:2:04:12 AM:.

Yay... what was probably obvious wasn't...

I've been fighting with Visual Studio .Net for the longest time in trying to use Xerces with Visual C++. In the post right before Christmas I had been talking about missing or misnamed .dll files. Only that's not the end of it, no, you need to include the library files which at first to me meant including the src directory but its much more. You actually need to include the .lib file as well (xerces-c_2.lib). While the build instructions do say that you need to include it they don't tell you how, they expect you to know how to include a .lib file in Visual C++ 7.

So without further ado, here's how:

  1. Set up your project
  2. In the solutions explorer (window to the right), right-click on the project and select properties
  3. Click on the C/C++ folder and then the subheading labeled 'General'
  4. For the 'Additional Include Directories' add the path to the SRC directory of the Xerces package (you do this by clicking on the empty field, then either pasting in the path, or you can click on the '...' and then the new folder button)
  5. Now click on the folder labelled 'linker' and then the subheading labeled 'General'
  6. For the 'Additional Library Directories', add the path containing the 'xerces-c_2.lib' and/or 'xerces-c_2D.lib' file
  7. Under the subheading 'Input' and for the 'Additional Dependencies' Field type in either xerces-c_2.lib or xerces-c_2D.lib
You should now be able to compile using the xerces library. Now I should go and read something entertaining cause my head's about to collapse.


home | archives