Enabled with the –std=c++11 or –std=gnu++11 compiler options

Toxic c/c++ code Block errors and its solutions

Error #1: C++0x_warning.h

Hi there, if you are using a code block ide then in any case if you got the error “ compiler requires library support for ISO C++ 2011 standard. Enabled with the  –std=c++11 or –std=gnu++11 compiler options “

At this instant, you should take the following 3 steps  mentioned below

  1. Open CodeBlock ide and create a project
  2. Project —> Build options
ISO C++ 2011 standard. Enabled with the  –std=c++11 or –std=gnu++11 compiler options
  1. Select Have g++ follow the c++11 ISO c++ language [-std=c++11]
Have g++ follow the c++11 ISO c++ language [-std=c++11]

Error #2: error.exe has stopped working

error.exe has stopped working

There might be many reasons for the occurrence of this error but one reason is program  crash’s due to faulty address is provided

At this instant, I was using file handling functions in c++ to read and write audio wave files

using namespace std;

const int SAMPLE_RATE = 44100;

const string IN_DIR = "C:\Users\Mohammed Anees\Desktop\New folder (2)\2016-06_MusicTech\AudioDSPBasics\InputFiles";
const string OUT_DIR = "C:\Users\Mohammed Anees\Desktop\New folder (2)\2016-06_MusicTech\AudioDSPBasics\OutputFiles\";

Basically, the path has to be in a double backslash(//)

using namespace std;

const int SAMPLE_RATE = 44100;

const string IN_DIR = "C:\\Users\Mohammed Anees\\Desktop\New folder (2)\\2016-06_MusicTech\\AudioDSPBasics\\InputFiles\\";
const string OUT_DIR = "C:\\Users\\Mohammed Anees\\Desktop\\New folder (2)\\2016-06_MusicTech\\AudioDSPBasics\\OutputFiles\\";

Error #3: assert.exe has stopped working

Besides, there is another reason for the cause of assert.exe has stopped working, Read the below article

Assertion failed error

Mohammed Anees

Hey there, welcome to aneescraftsmanship I’m Mohammed Anees an independent developer/blogger.

Leave a Reply

Your email address will not be published.