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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T18:37:03+00:00 2026-06-12T18:37:03+00:00

What is the value of Compiler Default for C++ Standard Library and C++ Language

  • 0

What is the value of “Compiler Default” for “C++ Standard Library” and “C++ Language Dialect” in Xcode 4.5?

My guess is libstdc++ and GNU++98, but it would be nice to have clarification.

From the Xcode 4.5 release notes:

Projects created using this Xcode release use the new libc++
implementation of the standard C++ library. The libc++ library is
available only on iOS 5.0 and later and OS X 10.7 and later. 12221787

To enable deployment on earlier releases of iOS and OS X in your
project, set the C++ Standard Library build setting to libstdc++ (Gnu
C++ standard library).

I notice that creating a new project explicitly sets GNU++11 and libc++, but “Compiler Default” is probably something else.

  • 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-12T18:37:04+00:00Added an answer on June 12, 2026 at 6:37 pm

    Here is the best way to find out:

     #include <iostream>
    
    int main()
    {
    #ifdef _LIBCPP_VERSION
        std::cout << "Using libc++\n";
    #else
        std::cout << "Using libstdc++\n";
    #endif
    #ifdef __GXX_EXPERIMENTAL_CXX0X__
    #if __cplusplus == 1
        std::cout << "Language mode = gnu++11\n";
    #else
        std::cout << "Language mode = c++11\n";
    #endif
    #else
    #if __cplusplus == 1
        std::cout << "Language mode = gnu++98\n";
    #else
        std::cout << "Language mode = c++98\n";
    #endif
    #endif
    }
    

    Just build a test project with the compiler defaults and run it.

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

Sidebar

Related Questions

I'm writing a compiler in C and need to get the ASCII value of
When calling functions that always throw from a function returning a value, the compiler
I have a class that takes standard address properties and stores them. The State
I tried changing a default parameter value with this: ALTER PROCEDURE [dbo].[my_sp] @currentDate datetime
I want to document the default value of an enum typed field: /// <summary>
My OS is Debian, my default locale is UTF-8 and my compiler is gcc.
I see some code will return the default value, so I am wondering for
I wanted to know why the default value for a variable for a method
I have a symbol table implemented as a std::map . For the value, there
I have an overloaded generic method used to obtain the value of a property

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.