スポンサーリンク
検索

↑の検索エンジンが表示されない人は、
↓の古い検索エンジンを使用して下さい。
カスタム検索
MQL4リファレンスツリー
コンパイルエラー


MetaEditorは、コンパイル時にコンパイラによって検出されたプログラムエラーに関するエラーメッセージを表示します。
コンパイラによって検出されるエラーが無くなるまで、プログラムはコンパイル出来ません。


管理人の勝手なコメント:
基本的な構文エラー(括弧や中括弧(重文処理)の閉じ忘れ、カンマの過多や付け忘れ、セミコロンの付け忘れ、コメント文字列以外で全角文字や全角スペースを使用している)の場合は、全く関係の無いコンパイルエラーが表示される事があります。
コンパイルエラー内容が全く当てはまらない場合は、基本的な構文が間違えていないかチェックして下さい。

コンパイルエラーについて問い合わせをする前に、このページでエラー内容を検索して下さい。
"検索"というのは"モニタ上で指差し確認して探す事"ではありません、ブラウザ上でキーボードのCtrlを押しながらFを押すと検索出来ます。 誰もが知っている検索方法を説明していてびっくりされる人がいるかもしれませんが、残念ながら"検索"という機能を知らない人が想像以上に沢山いるからです。

またプログラミング初心者の方はこまめにコンパイルをする癖をつけて下さい。
前半で重文処理の閉じ忘れがある状態で、気が付かないでそのままコーディングを進めるとエラーの箇所が全く分からなくなります。
ベテランなら一気にコーディングをした後でも経験と勘で初歩的な構文エラーの箇所をすぐに見つけられますが、初心者の方には非常に難しい作業になります。なので極端な事を言いますが、2~3行コード追加するたびにコンパイルして下さい。

コード 詳細
100 ファイル読み込みエラー
File reading error
101 ex4ファイルのファイルアクセスエラー
Error of opening an *. EX4 for writing
103 コンパイルをする為の空きメモリが不足しています
Not enough free memory to complete compilation
104 コンパイラが認識出来ない空の構文があります
Empty syntactic unit unrecognized by compiler
105 #includeのファイル名が不正です
Incorrect file name in #include
106 #includeのファイルアクセスエラー(インクルードファイルが存在しない)
Error accessing a file in #include (probably the file does not exist)
108 #defineの名前が不適切です
Inappropriate name for #define
109 不明なプリプロセッサです
Unknown command of preprocessor (valid #include, #define, #property, #import)
110 コンパイラが認識出来ない記号です
Symbol unknown to compiler
111 実装されていない関数です
Function not implemented (description is present, but no body)
112 ダブルクォーテーション(")が省略されています
Double quote (") omitted
113 開始の山括弧(<)かダブルクォーテーション(")が省略されています
Opening angle bracket (<) or double quote (") omitted
114 シングルクォーテーション(')が省略されています
Single quote (') omitted
115 終了の山括弧(>)が省略されています
Closing angle bracket (>) omitted
116 宣言で指定されていない型
Type not specified in declaration
117 return演算子がありません
No return operator or return is found not in all branches of the implementation
118 引数用の括弧が必要です
Opening bracket of call parameters was expected
119 ex4ファイル書き込みエラー
Error writing EX4
120 無効な配列アクセス
Invalid access to an array
121 この関数はvoid型ではありません。戻り値を返す必要があります。
The function is not of void type and the return operator must return a value
122 誤ったデストラクタ宣言です
Incorrect declaration of the destructor
123 コロン(:)がありません
Colon ":" is missing
124 既に宣言されている変数です
Variable is already declared
125 このような識別子を持つ変数は既に宣言されています
Variable with such identifier already declared
126 変数名が長すぎます(250文字を超えている)。
Variable name is too long (> 250 characters)
127 このような識別子を持つ構造体は既に宣言されています。
Structure with such identifier already defined
128 宣言されていない構造体です
Structure is not defined
129 構造体メンバの名前が重複しています
Structure member with the same name already defined
130 そのような構造体メンバはありません
No such structure member
131 括弧の使い方に誤りがあります
Breached pairing of brackets
132 開始の小括弧" ( "が抜けています
Opening parenthesis "(" expected
133 終了の中括弧" } "が抜けています
Unbalanced braces (no "}")
134 スタックオーバーフロー
Difficult to compile (too much branching, internal stack levels are overfilled)
135 読み込みファイルオープンエラー
Error of file opening for reading
136 メモリ不足によりソースファイルをダウンロード出来ません
Not enough memory to download the source file into memory
137 Variable is expected
138 リファレンスを初期化できません
Reference cannot be initialized
140 代入が期待されています(宣言に表示されます)
Assignment expected (appears at declaration)
141 開始の中括弧( { )が抜けています
Opening brace "{" expected
142 引数動的配列のみ可能です
Parameter can be a dynamic array only
143 void型の使用が許されません
Use of "void" type is unacceptable
144 終了の小括弧括弧" ) "または大括弧" ] "が抜けています
No pair for ")" or "]", i.e. "(or" [ " is absent
145 開始の小括弧括弧" ( "または大括弧" [ "が抜けています
No pair for "(or" [ ", i.e. ") "or"] " is absent
146 配列サイズが異常です
Incorrect array size
147 引数が多過ぎます(引数上限数:64)
Too many parameters (> 64)
149 不明なトークンです
This token is not expected here
150 無効なオペランドです
Invalid use of operation (invalid operands)
151 void式は許可されていません
152 演算子が必要です
Operator is expected
153 break文の使い方が間違えています
Misuse of break
154 セミコロン(;)がありません
Semicolon ";" expected
155 コンマ(,)がありません
Comma "," expected
156 クラス型でなければなりません
Must be a class type, not struct
157 が必要です
Expression is expected
158 HEXに「非HEX文字」が存在する、または、数が長すぎる(>511桁の数)
"non HEX character" found in HEX or too long number (number of digits> 511)
159 文字列定数が65534より多い文字を持っています
String-constant has more than 65534 characters
160 この場所で関数宣言は出来ません
Function definition is unacceptable here
161 予期せぬプログラムの終了
Unexpected end of program
162 構造体の前方宣言は禁止されています
Forward declaration is prohibited for structures
163 この名称の関数は既に定義されていて、異なる戻り値型を持っています
Function with this name is already defined and has another return type
164 この名称の関数は既に定義されていて、異なる引数を持っています
Function with this name is already defined and has a different set of parameters
165 この名称の関数は既に定義され実装されています
Function with this name is already defined and implemented
166 この関数呼び出しのオーバーロードは見つかりませんでした
Function overload for this call was not found
167 void型の関数は戻り値を返す事は出来ません
Function with a return value of void type cannot return a value
168 関数が宣言されていません
Function is not defined
170 値が必要です
Value is expected
171 case式で使用出来るのは整数定数のみです
In case expression only integer constants are valid
172 caseの値は既に使用されています
The value of case in this switch is already used
173 整数が必要です
Integer is expected
174 #importはファイル名指定が必要です
In #import expression file name is expected
175 はグローバルレベルでは許可されていません
Expressions are not allowed on global level
176 の終了";"の前の小括弧" ) "が抜けています
Omitted parenthesis ")" before ";"
177 比較の左側は符号付変数である必要があります
To the left of equality sign a variable is expected
178 の結果は使用されません
The result of expression is not used
179 case文内で変数の宣言は出来ません
Declaring of variables is not allowed in case
180 文字列から数値へ暗黙的に変換されます
Implicit conversion from a string to a number
181 数値から文字列暗黙的に変換されます
Implicit conversion of a number to a string
182 オーバーロード関数の曖昧な呼び出しをしています
Ambiguous call of an overloaded function (several overloads fit)
183 if文を使用せずにelse文を使用しています
Illegal else without proper if
184 switch文を使用せずにdefault文を使用しています
Invalid case or default without a switch
185 省略記号の誤用
Inappropriate use of ellipsis
186 初期化シーケンスが、初期化する配列要素より多い
The initializing sequence has more elements than the initialized variable
187 case文の為の定数が抜けています
A constant for case expected
188 定数式が必要です
A constant expression required
189 const変数は変更出来ません
A constant variable cannot be changed
190 閉じ括弧 またはコンマが必要です
Closing bracket or a comma is expected (declaring array member)
191 既に宣言されたenum列挙です
Enumerator identifier already defined
192 enum列挙はアクセス指定子(const,extern,static)を持つ事は出来ません
Enumeration cannot have access modifiers (const, extern, static)
193 enum列挙メンバーは既に別の値を使用して宣言されています
Enumeration member already declared with a different value
194 同じ名前で宣言された変数があります
There is a variable defined with the same name
195 同じ名前で宣言された構造体があります
There is a structure defined with the same name
196 enum列挙メンバーの名前がありません
Name of enumeration member expected
197 整数式がありません
Integer expression expected
198 定数式でゼロ除算しています
Division by zero in constant expression
199 関数の引数の数を間違えています
Wrong number of parameters in the function
200 引数の参照渡しは変数でなければなりません
Parameter by reference must be a variable
201 参照渡しは同じ型の変数である必要があります
Variable of the same type to pass by reference expected
202 const変数は非constでの参照渡しは出来ません
A constant variable cannot be passed by a non-constant reference
203 正の整数定数が必要です
Requires a positive integer constant
204 protectedクラスメンバへのアクセスに失敗しました
Failed to access protected class member
205 既に他の方法でインポートされています
Import already defined in another way
208 実行可能ファイルは作成されません
Executable file not created
209 OnCalculate関数が見つかりません
'OnCalculate' entry point not found for the indicator
210 continue文はループ処理内でのみ使用出来ます
The continue operation can be used only inside a loop
211 privateクラスメンバへアクセスしています
Error accessing private (closed) class member
213 構造体またはクラスのメソッドが宣言されていません
Method of structure or class is not declared
214 privateクラスメソッドへアクセスしています
Error accessing private (closed) class method
216 オブジェクト構造体のコピーは許可されていません
Copying of structures with objects is not allowed
218 配列の範囲外のインデックスです
Index out of array range
219 構造体またはクラス宣言で配列の初期化は許可されていません
Array initialization in structure or class declaration not allowed
220 クラスコンストラクタはパラメータを持つ事が出来ません
Class constructor cannot have parameters
221 クラスデストラクタはパラメータを持つ事が出来ません
Class destructor can not have parameters
222 同じ名前とパラメータを持つクラスメソッドまたは構造体は既に宣言されています
Class method or structure with the same name and parameters have already been declared
223 オペランドが必要です
Operand expected
224 同じ名前のクラスメソッドや構造体がありますが、異なるパラメータを持っています
Class method or structure with the same name exists, but with different parameters (declaration!=implementation)
225 インポート関数が記載されていません
Imported function is not described
226 ZeroMemory()関数でprotectedメンバや継承オブジェクトは使えません
ZeroMemory() is not allowed for objects with protected members or inheritance
227 オーバーロード関数の曖昧な呼び出しをしています
Ambiguous call of the overloaded function (exact match of parameters for several overloads)
228 変数名が必要です
Variable name expected
229 参照はこの場所で宣言する事が出来ません
A reference cannot be declared in this place
230 既にenum列挙名として使用されています
Already used as the enumeration name
232 クラスまたは構造体が必要です
Class or structure expected
235 delete演算子は配列削除に使用出来ません
Cannot call 'delete' operator to delete the array
236 while文が必要
Operator ' while' expected
237 deleteが必要なポインタがあります
Operator 'delete' must have a pointer
238 defaultswitch内に既で使用しています
There is 'default' for this 'switch' already
239 構文エラー
Syntax error
240 エスケープシーケンス(\)のみが使用されています
Escape-sequence can occur only in strings (starts with '\')
241 配列引数に配列を渡す時、大括弧([])は不要です
Array required - square bracket '[' does not apply to an array, or non arrays are passed as array parameters
242 初期化シーケンスを通して初期化する事は出来ません
Can not be initialized through the initialization sequence
243 インポート宣言されていません
Import is not defined
244 シンタックスツリーでの最適化エラー
Optimizer error on the syntactic tree
245 構造体が多過ぎます(プログラムが簡略化しようと試みます)
Declared too many structures (try to simplify the program)
246 パラメータの変換は許可されていません
Conversion of the parameter is not allowed
247 delete演算子の誤用
Incorrect use of the 'delete' operator
248 参照へのポインタは宣言出来ません
It's not allowed to declare a pointer to a reference
249 参照への参照宣言は出来ません
It's not allowed to declare a reference to a reference
250 ポインタへのポインタ宣言は出来ません
It's not allowed to declare a pointer to a pointer
251 引数構造体宣言は許可されていません
Structure declaration in the list of parameter is not allowed
252 無効な型キャスト
Invalid operation of typecasting
253 ポインタはクラスまたは構造体に対してのみ宣言出来ます
A pointer can be declared only for a class or structure
256 宣言されていない識別子
Undeclared identifier
257 実行可能コード最適化エラー
Executable code optimizer error
258 実行可能コード生成エラー
Executable code generation error
260 switch文の無効な式
Invalid expression for the 'switch' operator
261 文字列定数のオーバーフィル
Pool of string constants overfilled, simplify program
262 enum列挙へ変換出来ません
Cannot convert to enumeration
263 データに対してvirtual指定子は使用出来ません
Do not use 'virtual' for data (members of a class or structure)
264 protectedクラスメソッドは呼び出す事は出来ません
Cannot call protected method of class
265 オーバーライド仮想関数は別の型を返します
Overridden virtual functions return a different type
266 クラス構造体から継承出来ません
Class cannot be inherited from a structure
267 構造体クラスから継承できません
Structure cannot be inherited from a class
268 コンストラクタvirtual指定子は使えません
Constructor cannot be virtual (virtual specifier is not allowed)
269 構造体は仮想メソッドを持てません
Method of structure cannot be virtual
270 関数が空です
Function must have a body
271 システム関数(ターミナル関数)のオーバーロードは禁止されています
Overloading of system functions (terminal functions) is prohibited
272 const指定子はクラス構造体メンバでない関数には無効です
Const specifier is invalid for functions that are not members of a class or structure
274 constメソッドのクラスメンバーは変更出来ません
Not allowed to change class members in constant method
276 初期化シーケンスが不適切です
Inappropriate initialization sequence
277 パラメータのデフォルト値が見つかりません
Missed default value for the parameter (specific declaration of default parameters)
278 デフォルトパラメータのオーバーライド(宣言と実装で異なっている)
Overriding the default parameter (different values in declaration and implementation)
279 constオブジェクトにおいて非constメソッドを呼び出す事は出来ません
Not allowed to call non-constant method for a constant object
280 オブジェクトはメンバにアクセスする為に必要(クラス構造体以外のポインタが設定されている)
An object is necessary for accessing members (a dot for a non class/structure is set)
281 既に宣言された構造体名は、宣言で使用する事は出来ません
The name of an already declared structure cannot be used in declaration
284 不正な変換です(継承時)
Unauthorized conversion (at closed inheritance)
285 構造体配列はinput変数として使用する事は出来ません
Structures and arrays cannot be used as input variables
286 const指定子はコンストラクタ/デストラクタには使えません
Const specifier is not valid for constructor/destructor
287 日時文字列式が正しくありません
Incorrect string expression for a datetime
288 不明なプロパティ(#property)
Unknown property (#property)
289 プロパティの値が正しくありません
Incorrect value of a property
290 #propertyの無効なプロパティインデックス
Invalid index for a property in #property
291 呼び出し引数が省略されています
Call parameter omitted - <func (x,)>
293 オブジェクトは参照渡しにしなければなりません
Object must be passed by reference
294 配列参照渡しにする必要があります
Array must be passed by reference
295 関数がエクスポート可能と宣言されました
Function was declared as exportable
296 関数がエクスポート可能と宣言されていません
Function was not declared as exportable
297 インポートした関数はエクスポート出来ません
It is prohibited to export imported function
298 インポート関数は、動的配列・ポインタ・クラス構造体等のパラメータ持つ事は出来ません。
Imported function cannot have this parameter (prohibited to pass a pointer, class or structure containing a dynamic array, pointer, class, etc.)
299 クラスでなければなりません
Must be a class
300 #importが閉じられていません
#import was not closed
302 型が一致していません
Type mismatch
303 グローバル変数は既に初期化済みです
Extern variable is already initialized
304 エクスポート関数又はエントリーポイントが見つかりません
No exported function or entry point found
305 明示的なコンストラクタ呼び出しは許可されていません
Explicit constructor call is not allowed
306 メソッドは定数として宣言されました
Method was declared as constant
307 メソッドは定数として宣言されていません
Method was not declared as constant
308 不正なリソースファイルサイズです
Incorrect size of the resource file
309 不正なリソース名です
Incorrect resource name
310 リソースファイルが開けませんでした
Resource file opening error
311 リソースファイルの読み込めエラー
Resource file reading error
312 不正なリソースファイルの種類
Unknown resource type
313 不正なリソースファイルパス
Incorrect path to the resource file
314 既に使用されているリソースファイル名
The specified resource name is already used
315 引数が必要なマクロです
Argument expected for the function-like macro
316 マクロ定義で予期しない記号が使われています
Unexpected symbol in macro definition
317 マクロ引数のエラー
Error in formal parameters of the macro
318 マクロ引数の数が無効です
Invalid number of parameters for a macro
319 マクロ引数の数が多過ぎです
Too many parameters for a macro
320 マクロが複雑過ぎます
Too complex, simplify the macro
321 EnumToString()関数はenum列挙にのみ使用出来ます
Parameter for EnumToString() can be only an enumeration
322 リソース名が長過ぎます
The resource name is too long
323 サポートされてないイメージフォーマット
(24bit/32bit深度のbmpのみサポートされています)
Unsupported image format (only BMP with 24 or 32 bit color depth is supported)
324 配列は演算子に対して宣言出来ません
An array cannot be declared in operator
325 関数はグローバルスコープで宣言出来ます
The function can be declared only in the global scope
326 宣言は現在のスコープで許可されていません
The declaration is not allowed for the current scope
327 静的変数の初期化に、ローカル変数を使う事は許可されていません
Initialization of static variables with the values of local variables is not allowed
328 デフォルトコンストラクタを持たないオブジェクト配列宣言は出来ません
Illegal declaration of an array of objects that do not have a default constructor
329 処理化リストはコンストラクタにのみ許可されています
Initialization list allowed only for constructors
330 処理化リストの後に関数定義は出来ません
No function definition after initialization list
331 初期化リストが空です
Initialization list is empty
332 コンストラクタ配列初期化は許可されていません
Array initialization in a constructor is not allowed
333 初期化リストの親クラス初期化メンバは許可されていません
Initializing members of a parent class in the initialization list is not allowed
334 変数型の式が必要
Expression of the integer type expected
335 配列に必要なメモリが上限を超えています
Memory required for the array exceeds the maximum value
336 構造体に必要なメモリが上限を超えています
Memory required for the structure exceeds the maximum value
337 グローバルレベルで宣言された変数に必要なメモリが上限を超えています
Memory required for the variables declared on the global level exceeds the maximum value
338 ローカル変数に必要なメモリが上限を超えています
Memory required for local variables exceeds the maximum value
339 コンストラクタが定義されていません
Constructor not defined
340 不正なアイコンファイル名
Invalid name of the icon file
341 指定されたパスのアイコンファイルが開けませんでした
Could not open the icon file at the specified path
342 アイコンファイルが正しくありません(.icoファイルのみ対応)
The icon file is incorrect and is not of the ICO format
343 初期化リストを使用してクラス構造体コンストラクタメンバを再初期化しています
Reinitialization of a member in a class/structure constructor using the initialization list
344 コンストラクタの初期化リストの静的メンバ初期化は許可されていません
Initialization of static members in the constructor initialization list is not allowed
345 グローバルレベルでクラス構造体の非静的メンバの初期化は許可されていません
Initialization of a non-static member of a class/structure on a global level is not allowed
346 クラス構造体メソッドの名前が、宣言済みメンバの名前と一致しています
The name of the class/structure method matches the name of an earlier declared member
347 クラス構造体メンバの名前が、宣言済みメソッドの名前と一致しています
The name of the class/structure member matches the name of an earlier declared method
348 仮想関数static宣言出来ません
Virtual function cannot be declared as static
349 const修飾子はstatic関数に使用出来ません
The const modifier is not allowed for static functions
350 コンストラクタデストラクタは静的にする事は出来ません
Constructor or destructor cannot be static
351 クラス構造体の非静的メンバ・メソッドは静的関数からアクセス出来ません
Non-static member/method of a class or a structure cannot be accessed from a static function
352 演算子のオーバーロードは演算子の後に書く事を期待されています
An overload operation (+,-,[],++,-- etc.) is expected after the operator keyword
353 MQL4で全ての演算子がオーバーロード出来るわけではありません
Not all operations can be overloaded in MQL4
354 定義が宣言と一致しません
Definition does not match declaration
355 パラメーターの無効な数は、オペレータで指定されています
An invalid number of parameters is specified for the operator
356 イベントハンドラ処理が見つかりません
Event handling function not found
357 メソッドはエクスポート出来ません
Method cannot be exported
358 constオブジェクトへのポインタは、非constオブジェクトで正規化する事が出来ません
A pointer to the constant object cannot be normalized by a non-constant object
359 クラステンプレートはまだサポートされていません
Class templates are not supported yet
360 関数テンプレートオーバーロードはまだサポートされていません
Function template overload is not supported yet
361 関数テンプレートは適用出来ません
Function template cannot be applied
362 関数テンプレートの曖昧なパラメータ
Ambiguous parameter in function template (several parameter types can be applied)
363 関数テンプレート引数が正規化される事で、パラメータの型が決定出来ません
Unable to determine the parameter type, by which the function template argument should be normalized
364 関数テンプレートの引数の数が不正です
Incorrect number of parameters in the function template
365 関数テンプレート仮想関数にする事は出来ません
Function template cannot be virtual
366 関数テンプレートエクスポートする事が出来ません
Function templates cannot be exported
367 関数テンプレートはインポートする事が出来ません
Function templates cannot be imported
368 オブジェクトを含む構造体は許可されていません
Structures containing the objects are not allowed
369 オブジェクトを含む文字列配列構造体は許可されていません
String arrays and structures containing the objects are not allowed
370 静的クラス構造体のメンバは、明示的に初期化する必要があります
A static class/structure member must be explicitly initialized
371 文字列は65535より多い文字を含める事は出来ません
Compiler limitation: the string cannot contain more than 65 535 characters
372 #ifdef/#endifの使い方が不正
Inconsistent #ifdef/#endif
373 クラスのオブジェクトを戻すことはできません。コピーコンストラクタが見つかりません。
374 非静的メンバ・メソッドは使用する事が出来ません
Object of class cannot be returned, copy constructor not found
375 OnTesterInit()関数はOnTesterDeinit()関数無しで使用する事は出来ません
OnTesterInit() impossible to use without OnTesterDeinit()
376 仮パラメータ(%s)の再定義
Redefinition of formal parameter '%s'
377 __FUNCSIG__マクロと__FUNCTION__マクロは関数の外では使えません
Macro __FUNCSIG__ and __FUNCTION__ cannot appear outside of a function body
378 無能な戻り値の型です。
このエラーはdllからインポートされた関数の構造体またはポインタに対して発生します。
Invalid returned type. For example, this error will be produced for functions imported from DLL that return structure or pointer.
379 テンプレート使用エラー
Template usage error
380 使用されていません
Not used
381 pure virtual関数宣言の構文が正しくありません。"=NULL"または"=0"のみ許可されます
Illegal syntax when declaring pure virtual function, only "=NULL" or "=0" are allowed
382 pure specifierで宣言出来るのは仮想関数のみです
Only virtual functions can be declared with the pure-specifier ("=NULL" or "=0")
383 抽象クラスはインスタンス化できません
Abstract class cannot be instantiated
384 ユーザー定義型へのポインタは、dynamic_cast演算子を使用して動的キャストのターゲット型として適用する必要があります
A pointer to a user-defined type should be applied as a target type for dynamic casting using the dynamic_cast operator
385 "関数へのポインタ"型が必要です
"Pointer to function" type is expected
386 メソッドへのポインタはサポートしていません
Pointers to methods are not supported
387 関数へのポインタ型を定義出来ません
Error - cannot define the type of a pointer to function
388 private継承の為、型キャストは使用出来ません
Type cast is not available due to private inheritance
389 const修飾子の変数は、宣言中に初期化する必要があります
A variable with const modifier should be initialized during declaration




スポンサーリンク
スポンサーリンク


Copyright ©2015 MT4でEA自作しちゃお~ All Rights Reserved.


Top

inserted by FC2 system