![Thames & Kosmos Code Gamer Скачать руководство пользователя страница 64](http://html1.mh-extra.com/html/thames-and-kosmos/code-gamer/code-gamer_experiment-manual_1099224064.webp)
Common Error Messages
Here, a semicolon was expected before the closing
parenthesis, but it was not found.
A name used in the program is not familiar to the computer.
This is often an indication of a simple typo.
A type used in the program is not familiar to the compiler.
In most cases, this either involves a typo or you forgot to
include the corresponding file.
error: expected ';' before ')'
error: '...' was not declared in this scope
error: '...' does not name a type
EXAMPLE:
EXAMPLE:
EXAMPLE:
In function 'int average2()':
DoubleClap:86: error: expected ';' before
')' token
for (int i = 0; i < N, ++i) {
^
exit status 1
expected ';' before ')' token
error: 'pinnMode' was not declared in this
scope
pinnMode(A1, INPUT);
error: 'KosmoBits_Pixel' does not name a
type
KosmoBits_Pixel pixel;
#include <Adafruit_NeoPixel.h>
#include <KosmoBits_Pixel.h>
SOLUTION:
SOLUTION:
SOLUTION:
The comma has to be replaced with a semicolon after
i < N
.
Correct typo: It is actually called
pinMode
.
Include “KosmoBit_Pixel.h”:
62
ERROR MESSAGES
CodeGamer manual inside english.indd 62
7/19/16 12:33 PM