Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1019049
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T10:57:03+00:00 2026-05-16T10:57:03+00:00

Hey all. I’ve downloaded and moved the Xerces (v3.1.1) source here: /usr/include/xerces and I

  • 0

Hey all. I’ve downloaded and moved the Xerces (v3.1.1) source here: /usr/include/xerces and I can see the source in the project explorer like this:

MyCppProject

  • Binaries

  • Includes

    • […] // some other directories

    • xerces

      • dom

      • […] // some other directories

And, here’s my simple C++ code:


#include <xercesc/util/PlatformUtils.hpp>
using namespace xercesc; #include <iostream> using namespace std; int main(int argc, char* argv[]) { try { XMLPlatformUtils::Initialize(); } catch (const XMLException& toCatch) { return 1; } XMLPlatformUtils::Terminate(); return 0; }

And, here's the error that I get (along with others that are caused by this file not being included):

../main.cpp:1:42: error: xercesc/util/PlatformUtils.hpp: No such file or directory

What I don't understand is how the relative paths work in the source file. When I say type

#include <xercesc/util/PlatformUtils.hpp>

where is it looking, if not on the include paths already listed in the project explorer?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T10:57:04+00:00Added an answer on May 16, 2026 at 10:57 am

    From what you state in your question it looks like your using the folder name ‘xercesc’ instead of ‘xerces’ in your include path.

    try

    #include <xerces/util/PlatformUtils.hpp>
    

    The include directive will look in all of the directories in the include path and try to find the file specified. So if you specified a folder c:/something/include in your include path. it would search for c:/something/include/xercesc/util/PlatformUtils.hpp.

    If your file can’t be found then you need to check the include paths being used.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hey All, I currently use Google's API to include jQuery into my sites like
Hey all. Okay here is the situation. I would like to be able to
Hey all. I have the following code: http://jsfiddle.net/g7Cgg/ As you can see, there are
Hey all. Here is the scenario. I have the below code, and I'm needing
Hey all- I have looked this up on here and Google but none of
Hey all, this is my query string here: SELECT SUM(Total) as Total, AdministratorCode, SUM(WOD.Quantity)
Hey all here are my tables i have placed in a DIV for each.
Hey all, really bashing my head against a keyboard here, any information or pointing
Hey all! I converted my 2.0 site to 3.5 so I can take advantage
Hey all i am probably overthinking this but how can i check the textbox

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.