Ⅰ C++編譯錯誤信息中是什麼意思其中15是行的意思,那比如C2238是什麼呢
編譯器的錯誤信息編號而已
c999~c1999 為編譯器致命錯誤
常見的如c1083:找不到包含的文件 "***.h"
c2001~C3999 為編譯器錯誤
常見的如c2065: "identifier" 未聲明的標識符
c4001~C4999 為編譯器警告
常見的如c2018: "expression」: 有符號/無符號不匹配
想知道更多的信息 可以去查MSDN,這里有全部的錯誤信息
http://msdn.microsoft.com/zh-cn/library/8x5x43k7(VS.80).aspx
Ⅱ 關於c語言編譯提示錯誤C2061和C2059
這兩個是VC的編譯錯誤,其中Cxxxx的四位數字為錯誤號。具體如下:
1 C2061:
英文版錯誤描述為:
error C2061: syntax error : identifier 'XXXX'
其中XXXX為具體出錯的標識符。
出現這個錯誤,需要到出錯行檢查提示錯誤的變數。
一般有三種可能:
a. 變數未定義;
b. 變數名打錯了,比如Str打成了str一類的拼寫錯誤;
c.變數作用域不對。在超出定義變數作用域。
2 C2059:
英文版錯誤描述為:
error C2059: syntax error : 'XXX'
其中XXX為具體出錯的標識符。
出現這個錯誤,需要到出錯行檢查提示錯誤的符號。
一般是打錯符號了,比如多寫符號,少些符號,多餘的括弧等等。
另外,當出現錯誤時,可以通過雙擊VC錯誤窗口的對應描述行,代碼窗口就會自動跳轉到出錯行,有助於快速定位及解決問題。
Ⅲ java中的運行錯誤和編譯錯誤的英文是什麼啊
RuntimeException運行時異常,編譯錯誤error
Ⅳ 有關C和C++中錯誤信息提示
有兩個TC2.0的出錯提示,沒有TC++的,也沒有VC的,如果是VC++,可以用金山詞霸查。
TC 2.0編譯錯誤信息
說明:Turbo C 的源程序錯誤分為三種類型:致命錯誤、一般錯誤和警告。其中,致命錯誤通常是內部編譯出錯;一般錯誤指程序的語法錯誤、磁碟或內存存取錯誤或命令行錯誤等;警告則只是指出一些得懷疑的情況,它並不防止編譯的進行。
下面按字母順序A~Z分別列出致命錯誤及一般錯誤信息,英漢對照及處理方法:
(一)、致命錯誤英漢對照及處理方法:
A-B致命錯誤
Bad call of in-line function (內部函數非法調用)
分析與處理:在使用一個宏定義的內部函數時,沒能正確調用。一個內部函數以兩個下劃線(__)開始和結束。
Irrecable expression tree (不可約表達式樹)
分析與處理:這種錯誤指的是文件行中的表達式太復雜,使得代碼生成程序無法為它生成代碼。這種表達式必須避免使用。
Register allocation failure (存儲器分配失敗)
分析與處理:這種錯誤指的是文件行中的表達式太復雜,代碼生成程序無法為它生成代碼。此時應簡化這種繁雜的表達式或乾脆避免使用它。
(二)、一般錯誤信息英漢照及處理方法
#operator not followed by maco argument name(#運算符後沒跟宏變元名)
分析與處理:在宏定義中,#用於標識一宏變串。「#」號後必須跟一個宏變元名。
'xxxxxx' not anargument ('xxxxxx'不是函數參數)'
分析與處理:在源程序中將該標識符定義為一個函數參數,但此標識符沒有在函數中出現。
Ambiguous symbol 'xxxxxx' (二義性符號'xxxxxx')
分析與處理:兩個或多個結構的某一域名相同,但具有的偏移、類型不同。在變數或表達式中引用該域而未帶結構名時,會產生二義性,此時需修改某個域名或在引用時加上結構名。
Argument # missing name (參數#名丟失)
分析與處理:參數名已脫離用於定義函數的函數原型。如果函數以原型定義,該函數必須包含所有的參數名。
Argument list syntax error (參數表出現語法錯誤)
分析與處理:函數調用的參數間必須以逗號隔開,並以一個右括弧結束。若源文件中含有一個其後不是逗號也不是右括弧的參數,則出錯。
Array bounds missing (數組的界限符"]"丟失)
分析與處理:在源文件中定義了一個數組,但此數組沒有以下右方括弧結束。
Array size too large (數組太大)
分析與處理:定義的數組太大,超過了可用內存空間。
Assembler statement too long (匯編語句太長)
分析與處理:內部匯編語句最長不能超過480位元組。
Bad configuration file (配置文件不正確)
分析與處理:TURBOC.CFG配置文件中包含的不是合適命令行選擇項的非註解文字。配置文件命令選擇項必須以一個短橫線開始。
Bad file name format in include directive(包含指令中文件名格式不正確)
分析與處理:包含文件名必須用引號("filename.h")或尖括弧(<文件名>)括起來,否則將產生本類錯誤。如果使用了宏,則產生的擴展文本也不正確,因為無引號沒辦法識別。
Bad ifdef directive syntax (ifdef指令語法錯誤)
分析與處理:#ifdef必須以單個標識符(只此一個)作為該指令的體。
Bad ifndef directive syntax (ifndef指令語法錯誤)
分析與處理:#ifndef 必須以單個標識符(只此一個)作為該指令的體。
Bad undef directive syntax (undef指令語法錯誤)
分析與處理:#undef指令必須以單個標識符(只此一個)作為該指令的體。
Bad file size syntax (位欄位長語法錯誤)
分析與處理:一個位欄位長必須是1—16位的常量表達式。
Call of non-functin (調用未定義函數)
分析與處理:正被調用的函數無定義,通常是由於不正確的函數聲明或函數名拼錯而造成。
Cannot modify a const object (不能修改一個長量對象)
分析與處理:對定義為常量的對象進行不合法操作(如常量賦值)引起本錯誤。
Case outside of switch (Case 出現在switch外)
分析與處理:編譯程序發現Case語句出現在switch語句之外,這類故障通常是由於括弧不匹配造成的。
Case statement missing (Case語句漏掉)
分析與處理:Case語必須包含一個以冒號結束的常量表達式,如果漏了冒號或在冒號前多了其它符號,則會出現此類錯誤。
Character constant too long (字元常量太長)
分析與處理:字元常量的長度通常只能是一個或兩個字元長,超過此長度則會出現這種錯誤。
Compound statement missing (漏掉復合語句)
分析與處理:編譯程序掃描到源文件未時,未發現結束符號 (大括弧),此類故障通常是由於大括弧不匹配所致。
Conflicting type modifiers (類型修飾符沖突)
分析與處理:對同一指針,只能指定一種變址修飾符(如near 或far);而對於同一函數,也只能給出一種語言修飾符(如Cdecl、pascal或interrupt)。
Constant expression required (需要常量表達式)
分析與處理:數組的大小必須是常量,本錯誤通常是由於#define常量的拼寫錯誤引起。
Could not find file 'xxxxxx.xxx' (找不到'xxxxxx.xx'文件)
分析與處理:編譯程序找不到命令行上給出的文件。
Declaration missing (漏掉了說明)
分析與處理:當源文件中包含了一個struct或 union域聲明,而後面漏掉了分號,則會出現此類錯誤。
Declaration needs type or storage class(說明必須給出類型或存儲類)
分析與處理:正確的變數說明必須指出變數類型,否則會出現此類錯誤。
Declaration syntax error (說明出現語法錯誤)
分析與處理:在源文件中,若某個說明丟失了某些符號或輸入多餘的符號,則會出現此類錯誤。
Default outside of switch (Default語句在switch語句外出現)
分析與處理:這類錯誤通常是由於括弧不匹配引起的。
Define directive needs an identifier (Define指令必須有一個標識符)
分析與處理:#define 後面的第一個非空格符必須是一個標識符,若該位置出現其它字元,則會引起此類錯誤。
Division by zero (除數為零)
分析與處理:當源文件的常量表達式出現除數為零的情況,則會造成此類錯誤。
Do statement must have while (do語句中必須有While關鍵字)
分析與處理:若源文件中包含了一個無While關鍵字的 do語句,則出現本錯誤。
DO while statement missing ( (Do while語句中漏掉了符號"(")
分析與處理:在do語句中,若 while關鍵字後無左括弧,則出現本錯誤。
Do while statement missing;(Do while語句中掉了分號)
分析與處理:在DO語句的條件表達式中,若右括弧後面無分號則出現此類錯誤。
Duplicate Case (Case情況不唯一)
分析與處理:Switch語句的每個case必須有一個唯一的常量表達式值。否則導致此類錯誤發生。
Enum syntax error (Enum語法錯誤)
分析與處理:若enum說明的標識符表格式不對,將會引起此類錯誤發生。
Enumeration constant syntax error (枚舉常量語法錯誤)
分析與處理:若賦給enum類型變數的表達式值不為常量,則會導致此類錯誤發生。
Error Directive : xxxx (Error指令:xxxx)
分析與處理:源文件處理#error指令時,顯示該指令指出的信息。
Error Writing output file (寫輸出文件錯誤)
分析與處理:這類錯誤通常是由於磁碟空間已滿,無法進行寫入操作而造成。
Expression syntax error (表達式語法錯誤)
分析與處理:本錯誤通常是由於出現兩個連續的操作符,括弧不匹配或缺少括弧、前一語句漏掉了分號引起的。
Extra parameter in call (調用時出現多餘參數)
分析與處理:本錯誤是由於調用函數時,其實際參數個數多於函數定義中的參數個數所致。
Extra parameter in call to xxxxxx(調用xxxxxxxx函數時出現了多餘參數)
File name too long (文件名太長)
分析與處理:#include指令給出的文件名太長,致使編譯程序無法處理,則會出現此類錯誤。通常DOS下的文件名長度不能超過 64個字元。
For statement missing ) (For語名缺少")")
分析與處理:在 for語句中,如果控製表達式後缺少右括弧,則會出現此類錯誤。
For statement missing( (For語句缺少"(")
For statement missing; (For 語句缺少";")
分析與處理:在 for語句中,當某個表達式後缺少分號,則會出現此類錯誤。
Function call missing) (函數調用缺少")")
分析與處理:如果函數調用的參數表漏掉了右手括弧或括弧不匹配,則會出現此類錯誤。
Function definition out ofplace (函數定義位置錯誤)
Function doesn't take a variable number of argument(函數不接受可變的參數個數)
Goto statement missing label (Goto語句缺少標號)
If statement missing( (If語句缺少"(")
If statement missing) (If語句缺少")")
lllegal initalization (非法初始化)
lllegal octal digit (非法八進制數)
分析與處理:此類錯誤通常是由於八進制常數中包含了非八進制數字所致。
lllegal pointer subtraction (非法指針相減)
lllegal structure operation (非法結構操作)
lllegal use of floating point (浮點運算非法)
lllegal use of pointer (指針使用非法)
Improper use of a typedef symbol (typedef符號使用不當)
Incompatible storage class (不相容的存儲類型)
Incompatible type conversion (不相容的類型轉換)
Incorrect commadn line argument:xxxxxx (不正確的命令行參數:xxxxxxx)
Incorrect commadn file argument:xxxxxx (不正確的配置文件參數:xxxxxxx)
Incorrect number format (不正確的數據格式)
Incorrect use of default (deflult不正確使用)
Initializer syntax error (初始化語法錯誤)
Invaild indrection (無效的間接運算)
Invalid macro argument separator (無效的宏參數分隔符)
Invalid pointer addition (無效的指針相加)
Invalid use of dot (點使用錯)
Macro argument syntax error (宏參數語法錯誤)
Macro expansion too long (宏擴展太長)
Mismatch number of parameters in definition(定義中參數個數不匹配)
Misplaced break (break位置錯誤)
Misplaced continue (位置錯)
Misplaced decimal point (十進制小數點位置錯)
Misplaced else (else 位置錯)
Misplaced else driective (clse指令位置錯)
Misplaced endif directive (endif指令位置錯)
Must be addressable (必須是可編址的)
Must take address of memory location (必須是內存一地址)
No file name ending (無文件終止符)
No file names given (未給出文件名)
Non-protable pointer assignment (對不可移植的指針賦值)
Non-protable pointer comparison (不可移植的指針比較)
Non-protable return type conversion (不可移植的返回類型轉換)
Not an allowed type (不允許的類型)
Out of memory (內存不夠)
Pointer required on left side of (操作符左邊須是一指針)
Redeclaration of 'xxxxxx' ('xxxxxx'重定義)
Size of structure or array not known (結構或數組大小不定)
Statement missing; (語句缺少「;」)
Structure or union syntax error (結構或聯合語法錯誤)
Structure size too large (結構太大)
Subscription missing ] (下標缺少『]』)
Switch statement missing ( (switch 語句缺少"(")
Switch statement missing ) (switch 語句缺少")")
Too few parameters in call (函數調用參數太少)
Too few parameter in call to'xxxxxx'(調用'xxxxxx'時參數太少)
Too many cases (Cases太多)
Too many decimal points (十進制小數點太多)
Too many default cases (defaut太多)
Too many exponents (階碼太多)
Too many initializers (初始化太多)
Too many storage classes in declaration (說明中存儲類太多)
Too many types in decleration (說明中類型太多)
Too much auto memory in function (函數中自動存儲太多)
Too much global define in file (文件中定義的全局數據太多)
Two consecutive dots (兩個連續點)
Type mismatch in parameter # (參數"#"類型不匹配)
Type mismatch in parameter # in call to 'XXXXXXX' (調用'XXXXXXX'時參數#類型不匹配)
Type missmatch in parameter 'XXXXXXX' (參數'XXXXXXX'類型不匹配)
Type mismatch in parameter 'YYYYYYYY' in call to 'YYYYYYYY'(調用'YYYYYYY'時參數'XXXXXXXX'數型不匹配)
Type mismatch in redeclaration of 'XXX' (重定義類型不匹配)
Unable to creat output file 'XXXXXXXX.XXX' (不能創建輸出文件'XXXXXXXX.XXX')
Unable to create turboc.lnk (不能創建turboc.lnk )
Unable to execute command 'xxxxxxxx'(不能執行'xxxxxxxx'命令)
Unable to open include file 'xxxxxxx.xxx' (不能打開包含文件'xxxxxxxx.xxx')
Unable to open inputfile 'xxxxxxx.xxx' (不能打開輸入文件'xxxxxxxx.xxx')
Undefined label 'xxxxxxx' (標號'xxxxxxx'未定義)
Undefined structure 'xxxxxxxxx' (結構'xxxxxxxxxx'未定義)
Undefined symbol 'xxxxxxx' (符號'xxxxxxxx'未定義)
Unexpected end of file in comment started on line #(源文件在某個注釋中意外結束)
Unexpected end of file in conditional stated on line # (源文件在#行開始的條件語句中意外結束)
Unknown preprocessor directive 'xxx' (不認識的預處理指令:'xxx')Untermimated character constant (未終結的字元常量)
Unterminated string (未終結的串)
Unterminated string or character constant(未終結的串或字元常量)
User break (用戶中斷)
Value required (賦值請求)
While statement missing ( (While語句漏掉 '(')
While statement missing ) (While語句漏掉 ')')
Wrong number of arguments in of 'xxxxxxxx' (調用'xxxxxxxx'時參數個數錯誤)
----------------------------------------------------------------------------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
較簡練的出錯說明
TC出錯信息一覽
ambiguous operators need parentheses
不明確的運算需要用括弧括起
ambiguous symbol ''xxx''
不明確的符號
argument list syntax error
參數表語法錯誤
array bounds missing
丟失數組界限符
array size toolarge
數組尺寸太大
bad character in paramenters
參數中有不適當的字元
bad file name format in include directive
包含命令中文件名格式不正確
bad ifdef directive synatax
編譯預處理ifdef有語法錯
bad undef directive syntax
編譯預處理undef有語法錯
bit field too large
位欄位太長
call of non-function
調用未定義的函數
call to function with no prototype
調用函數時沒有函數的說明
cannot modify a const object
不允許修改常量對象
case outside of switch
漏掉了case 語句
case syntax error
case 語法錯誤
code has no effect
代碼不可述不可能執行到
compound statement missing{
分程序漏掉"{"
conflicting type modifiers
不明確的類型說明符
constant expression required
要求常量表達式
constant out of range in comparison
在比較中常量超出范圍
conversion may lose significant digits
轉換時會丟失意義的數字
conversion of near pointer not allowed
不允許轉換近指針
could not find file ''xxx''
找不到xxx文件
declaration missing ;
說明缺少";"
declaration syntax error
說明中出現語法錯誤
default outside of switch
default 出現在switch語句之外
define directive needs an identifier
定義編譯預處理需要標識符
division by zero
用零作除數
do statement must have while
do-while語句中缺少while部分
enum syntax error
枚舉類型語法錯誤
enumeration constant syntax error
枚舉常數語法錯誤
error directive :xxx
錯誤的編譯預處理命令
error writing output file
寫輸出文件錯誤
expression syntax error
表達式語法錯誤
extra parameter in call
調用時出現多餘錯誤
file name too long
文件名太長
function call missing )
函數調用缺少右括弧
fuction definition out of place
函數定義位置錯誤
fuction should return a value
函數必需返回一個值
goto statement missing label
goto語句沒有標號
hexadecimal or octal constant too large
16進制或8進制常數太大
illegal character ''x''
非法字元x
illegal initialization
非法的初始化
illegal octal digit
非法的8進制數字
illegal pointer subtraction
非法的指針相減
illegal structure operation
非法的結構體操作
illegal use of floating point
非法的浮點運算
illegal use of pointer
指針使用非法
improper use of a typedefsymbol
類型定義符號使用不恰當
in-line assembly not allowed
不允許使用行間匯編
incompatible storage class
存儲類別不相容
incompatible type conversion
不相容的類型轉換
incorrect number format
錯誤的數據格式
incorrect use of default
default使用不當
invalid indirection
無效的間接運算
invalid pointer addition
指針相加無效
irrecible expression tree
無法執行的表達式運算
lvalue required
需要邏輯值0或非0值
macro argument syntax error
宏參數語法錯誤
macro expansion too long
宏的擴展以後太長
mismatched number of parameters in definition
定義中參數個數不匹配
misplaced break
此處不應出現break語句
misplaced continue
此處不應出現continue語句
misplaced decimal point
此處不應出現小數點
misplaced elif directive
不應編譯預處理elif
misplaced else
此處不應出現else
misplaced else directive
此處不應出現編譯預處理else
misplaced endif directive
此處不應出現編譯預處理endif
must be addressable
必須是可以編址的
must take address of memory location
必須存儲定位的地址
no declaration for function ''xxx''
沒有函數xxx的說明
no stack
缺少堆棧
no type information
沒有類型信息
non-portable pointer assignment
不可移動的指針(地址常數)賦值
non-portable pointer comparison
不可移動的指針(地址常數)比較
non-portable pointer conversion
不可移動的指針(地址常數)轉換
not a valid expression format type
不合法的表達式格式
not an allowed type
不允許使用的類型
numeric constant too large
數值常太大
out of memory
內存不夠用
parameter ''xxx'' is never used
能數xxx沒有用到
pointer required on left side of ->
符號->的左邊必須是指針
possible use of ''xxx'' before definition
在定義之前就使用了xxx(警告)
possibly incorrect assignment
賦值可能不正確
redeclaration of ''xxx''
重復定義了xxx
redefinition of ''xxx'' is not identical
xxx的兩次定義不一致
register allocation failure
寄存器定址失敗
repeat count needs an lvalue
重復計數需要邏輯值
size of structure or array not known
結構體或數給大小不確定
statement missing ;
語句後缺少";"
structure or union syntax error
結構體或聯合體語法錯誤
structure size too large
結構體尺寸太大
sub scripting missing ]
下標缺少右方括弧
superfluous & with function or array
函數或數組中有多餘的"&"
suspicious pointer conversion
可疑的指針轉換
symbol limit exceeded
符號超限
too few parameters in call
函數調用時的實參少於函數的參數不
too many default cases
default太多(switch語句中一個)
too many error or warning messages
錯誤或警告信息太多
too many type in declaration
說明中類型太多
too much auto memory in function
函數用到的局部存儲太多
too much global data defined in file
文件中全局數據太多
two consecutive dots
兩個連續的句點
type mismatch in parameter xxx
參數xxx類型不匹配
type mismatch in redeclaration of ''xxx''
xxx重定義的類型不匹配
unable to create output file ''xxx''
無法建立輸出文件xxx
unable to open include file ''xxx''
無法打開被包含的文件xxx
unable to open input file ''xxx''
無法打開輸入文件xxx
undefined label ''xxx''
沒有定義的標號xxx
undefined structure ''xxx''
沒有定義的結構xxx
undefined symbol ''xxx''
沒有定義的符號xxx
unexpected end of file in comment started on line xxx
從xxx行開始的註解尚未結束文件不能結束
unexpected end of file in conditional started on line xxx
從xxx 開始的條件語句尚未結束文件不能結束
unknown assemble instruction
未知的匯編結構
unknown option
未知的操作
unknown preprocessor directive: ''xxx''
不認識的預處理命令xxx
unreachable code
無路可達的代碼
unterminated string or character constant
字元串缺少引號
user break
用戶強行中斷了程序
void functions may not return a value
void類型的函數不應有返回值
wrong number of arguments
調用函數的參數數目錯
''xxx'' not an argument
xxx不是參數
''xxx'' not part of structure
xxx不是結構體的一部分
xxx statement missing (
xxx語句缺少左括弧
xxx statement missing )
xxx語句缺少右括弧
xxx statement missing ;
xxx缺少分號
xxx'' declared but never used
說明了xxx但沒有使用
xxx'' is assigned a value which is never used
給xxx賦了值但未用過
zero length structure
結構體的長度為零