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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T11:23:41+00:00 2026-05-19T11:23:41+00:00

Is there any native library in STL which is tested and works without any

  • 0

Is there any native library in STL which is tested and works without any extra compiler options?
I tried to use <regex>, but the compiler outputs this:

In file included from /usr/include/c++/4.3/regex:40, from main.cpp:5:
/usr/include/c++/4.3/c++0x_warning.h:36:2: error: #error This file requires compiler and library support for the upcoming ISO C++ standard, C++0x. This support is currently experimental, and must be enabled with the -std=c++0x or -std=gnu++0x compiler options.

  • 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-19T11:23:41+00:00Added an answer on May 19, 2026 at 11:23 am

    G++ 4.3 (and presumably later versions as well) is just being careful about the header files for maximum standards conformance.

    If you’re programming in C++98 (the current standard that’s been around for a while), then regular expression support was added in tech report 1, and the and the header files are in a special tr1 directory, and the contents are in a special namespace std::tr1.

    In the new C++0x standard, the regular expression support has been merged into the standard library, so it can be found in the header regex and namespace std.

    G++ makes sure that you use the right version for the --std= version you specified on the command line, even though internally they’re both the same implementation.

    So to make regex work without switching to --std=c++0x, just

    #include <tr1/regex>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there any (preferably native) C# library which allows me to send some messages
Is there any good, simple Java Grep Library? I'm not opposed to native code,
Is there any native compression (for javascript/css files) available in ASP.NET?
Is there any (hopefully free/open source) code available that does native TLS/SSL communication? I
Is there any way to validate the contents of a CEdit box without subclassing?
Is there any tools to assist in diagramming a large C library? I am
Is there any way to change the BackColor of the border of a panel
Are there any open-source compression/decomp libraries available for Ruby? Has anyone implemented LZW? Or,
Is there any way I can run class files (i.e. with main as the
Is there any way to view the reduction steps in haskell, i.e trace the

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.