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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T17:25:39+00:00 2026-06-14T17:25:39+00:00

I was using LLVM GCC 4.2 compiler but for a reason I want to

  • 0

I was using LLVM GCC 4.2 compiler but for a reason I want to use Apple LLVM compiler instead. I use some boost libraries statically linked.

My code part is here:

#include <boost/program_options/detail/config_file.hpp>

std::set<std::string> options;
std::map<std::string, std::string> parameters;
options.insert("*");

for (config_file_iterator i(config, options), e ; i != e; ++i) 
    parameters[i->string_key] = i->value[0];

When I changed the compiler in Xcode 4.5.1 to Apple LLVM 4.1, it gives me this error:



    In file included from A.cpp:16:
    boost_1_46_1/boost/program_options/detail/config_file.hpp:163:17: error: 
    call to function 'to_internal' that is neither visible in the template 
    definition nor found by argument-dependent lookup
        s = to_internal(in);
            ^
    A.cpp:82:39: note: in instantiation of member function
    'boost::program_options::detail::basic_config_file_iterator::getline' 
    requested here
        for (config_file_iterator i(config, options), e ; i != e; ++i) 
                                  ^
    boost_1_46_1/boost/program_options/detail/convert.hpp:70:48: note: 
    'to_internal' should be declared prior to the call site or 
    in namespace '__gnu_cxx'
BOOST_PROGRAM_OPTIONS_DECL std::string to_internal(const std::string&);

enter image description here

Does somebody know what is the solution?

  • 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-14T17:25:41+00:00Added an answer on June 14, 2026 at 5:25 pm

    Please find, at the top of detail/config_file.hpp, the following line:

    #include <boost/program_options/detail/convert.hpp>
    

    And remove #if and #endif around that line. Everything should be building fine after that. The fix is already included in current versions.

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

Sidebar

Related Questions

I'm using Apple's llvm-gcc to compile some code with inline assembly. I wrote what
I am using xcode 4, Compiler version LLVM GCC 4.2. I have been trying
This code compiles just fine on gcc, but when using llvm (llvm-gcc), it says
In my app i used Compiler for C/C++/Objective-C is Apple LLVM compiler 4.1 for
I am trying to compile old iPhone application project using new LLVM 3.0 compiler.
Compiling my project on new xcode4 using llvm 2.0 compiler I get a strange
I'm using LLVM-clang on Linux. Suppose in foo.cpp I have: struct Foo { int
I’m trying to set the header search path in Xcode 4 (using LLVM 2.0
I compile my C++ program to LLVM IR using the following command. clang++ -O4
Using a populated Table Type as the source for a TSQL-Merge. I want to

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.