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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T11:02:47+00:00 2026-06-18T11:02:47+00:00

Will code written under the C++98 standard work with newer compilers, such as g++.

  • 0

Will code written under the C++98 standard work with newer compilers, such as g++. Or will it not work. Assumedly simple “Hello World” programs would work, but how about complicated command line programs?

  • 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-18T11:02:48+00:00Added an answer on June 18, 2026 at 11:02 am

    The -std= command line argument to g++ allows you to compile against a specific version of the standard.

    See: http://linux.die.net/man/1/g++

    If in the future the authors of g++ (this applies to any compiler I suppose) decide to default to an incompatible version of the standard, this argument would let you compile older code.

    It should only stop working if the authors of g++ drop C++98 support entirely. I see this happening only when the amount of C++98 code becomes so small or the new standards so incompatible with it that it’s easier to have people update all their code than to keep supporting it. In any case, it should be a gradual and foreseeable change.

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

Sidebar

Related Questions

I am writing php code which will work under *nix systems. I need to
Which code snippet will give better performance? The below code segments were written in
this code will not pass the query string to default3.aspx on Image Button ..
I am writing code intended to work both under ARC and under Garbage Collection.
I have a simple little music player written to use AVFoundation under 10.8. It
I've written some code that I think should be failing under certain conditions, but
So another web bureau made a design for a website that I will code.
Will Java code built and compiled against a 32-bit JDK into 32-bit byte code
Will this code ever wait on the mutex inside the producer's void push(data) ?
My code will process data in batches as recommended in this this post and

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.