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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T06:52:03+00:00 2026-06-13T06:52:03+00:00

Why is it saying that other than the obvious answer. Also how can I

  • 0

Why is it saying that other than the obvious answer. Also how can I work around this, I don’t want to add c++11 code to this project.

#include <random>

mingw 4.4 ( version that’s shipped with QTSDK, not using QT Libraries though, just QT Creator )

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-06-13T06:52:04+00:00Added an answer on June 13, 2026 at 6:52 am

    The <random> header was only added to the c++ standard in C++0x. The standard library implementers put in a preprocessor directive to error out if you try to use <random> in C++98 mode, for one of two reasons:

    If the header file takes advantage of new C++0x language features, it wouldn’t work at all in the default C++98 mode. The C++0x error message is there so that you’d understand why it didn’t work, rather than having to figure out the meaning of soup of “unknown keyword” and other error messages.

    If the header file doesn’t require any new C++0x language features, then the C++0x error message is there, so that you wouldn’t accidentally use it thinking it was available in C++98. If you were to do that, and then somebody else tried to compile your code on a C++98-only compiler that didn’t ship the <random> header at all (e.g. an older version of GCC that you intended to support by restricting yourself to C++98), they’d be quite mad.

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

Sidebar

Related Questions

I will start by saying that I don't think what I want can be
Let me preface by saying that I saw this other question on the subject
Why we are saying that the OS is purely hardware dependent (other than hardware
I'll start by saying that I have searched SO and not found an answer
(Let me begin by saying that a) I appreciate this is the wrong place
Let me start by saying that this app was working fine the day before.
I bet that I could find the answer of this question from reading similar
i want to start by saying that i know there are a couple of
Introduction I'm trying to emphase some region on a spherical surface saying that this
I am currently working with eclipse AST to generate source code. Other than in

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.