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 7969669
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T07:16:24+00:00 2026-06-04T07:16:24+00:00

I tried to work with the boost library to read/write configuration files but I

  • 0

I tried to work with the boost library to read/write configuration files but I just don’t get it.

I even can’t run the example code from boost.org (5 Minute Tutorial)
http://www.boost.org/doc/libs/1_49_0/libs/property_tree/examples/debug_settings.cpp

I’ve downloaded the boost_1_49_0.zip package and unzipped it to my c++ program folder. The code compiles (TheIDE – U++) but it always says “Error: debug_settings.xml: cannot open file” which basically means that the program works, but runs into the exception.

I didn’t change the code, I just copy and pasted it to get a working example which I could try to understand then. But I don’t even get this one to work. (Since it’s exactly the same as in the link, I don’t paste the code here… unless you think it’s better.)

Please help me… or point to a different way to store variables in a file with some kind of structure (I wan’t to learn a way that works for windows and linux, because some of my apps are cross-platform.)

Thanks.

EDIT: debug_settings.xml is in the same folder as the .cpp file

EDIT2: Working now, the debug_settings.xml is now in the folder where the executable is stored. (in my case, U++/TheIDE it’s C:\upp\out\MyApps\MINGW.Debug.Debug_Full.Sse2 for debugging)

  • 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-06-04T07:16:25+00:00Added an answer on June 4, 2026 at 7:16 am

    The configuration file would need to be in the working directory of the executable when it’s running.

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

Sidebar

Related Questions

Tried a bunch of things but I can't get it to work consistently amid
I have tried this but it does not work (even if I specify .wav
I tried using Path.GetDirectoryName() but it doesn't work. What I'm trying to get is
How can I flush data from streambuf to file? I've tried read(*socket_, streamBuf, boost::asio::transfer_at_least(694784))
It's located under /Users/username/Library/StickiesDatabase. I've tried to work on it. It seems to be
I tried this JavaScript but it doesn't work - here I need to change
I tried multiple solution but none seem to work. Layout: -------------------- |btn1| txt1 |btn2|
Is there any way to make boost::bind work with std::fill ? I tried the
http://www.boost.org/boost-build2/doc/html/bbv2/installation.html Tried following those instructions, but they do not work. What I did: Open
I tried using the boost deadline_timer in this simple test application, but had some

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.