When this error occurred, I found a lot of information on the Internet. What is useful is that the following method is very simple,
Menu bar – & gt; setting – & gt; compiler
Check as shown in the figure below and click OK
Recompile, find correct, problem solved.
Read More:
- Code::Blocks 12.11 error: ‘nullptr’ was not declared in this scope&GNU GCC -std=gnu++0x
- g++ error: ‘printf’ was not declared in this scope
- error: ‘atoi’ was not declared in this scope
- error: ‘memcpy’ was not declared in this scope
- error: `cout’ was not declared in this scope
- error: ‘vector‘ was not declared in this scope|
- [Error] ‘sort’ was not declared in this scope
- Error:‘itoa’ was not declared in this scope
- error: ‘exit’ was not declared in this scope
- error: ‘NULL’ was not declared in this scope
- Analysis of the causes of errors in G + + compilation “was not declared in this scope”“
- error: ‘CV_BGR2GRAY’ was not declared in this scope
- Arduino ide 1.6.9 problems encountered error:’TKD2′ was not declared in this scope
- c++ error: ‘malloc’ was not declared in this scope
- error: ‘stoi’ was not declared in this scope linux (Fixed)
- g++ c++ error: ‘malloc’ was not declared in this scope
- “Error: ` cout ‘was not declared in this scope”
- Arduino reports an error when writing a custom library file to solve the problem of not name of type, not declared in this scope
- Configuring OpenGL in Code:: blocks
- Successfully solved the problem that visual studio code could not go to the definition, and there was no mouse prompt