當前位置:首頁 » 編程軟體 » 編譯錯誤大全

編譯錯誤大全

發布時間: 2023-02-09 07:05:35

⑴ error C2064: 項不會計算為接受 1 個參數的函數

1、編譯器錯誤 C2064
錯誤消息
項不會計算為接受「number」個參數的函數

一般出現這個錯誤是因為函數定義參數個數與實際調用參數個數不符合。

2、下面為c語言的錯誤大全及中文解釋:
1: Ambiguous operators need parentheses — 不明確的運算需要用括弧括起
2: Ambiguous symbol xxx — 不明確的符號
3: Argument list syntax error — 參數表語法錯誤
4: Array bounds missing — 丟失數組界限符
5: Array size toolarge — 數組尺寸太大
6: Bad character in paramenters — 參數中有不適當的字元
7: Bad file name format in include directive — 包含命令中文件名格式不正確
8: Bad ifdef directive synatax — 編譯預處理ifdef有語法錯
9: Bad undef directive syntax — 編譯預處理undef有語法錯
10: Bit field too large — 位欄位太長
11: Call of non-function — 調用未定義的函數
12: Call to function with no prototype — 調用函數時沒有函數的說明
13: Cannot modify a const object — 不允許修改常量對象
14: Case outside of switch — 漏掉了case 語句
15: Case syntax error — Case 語法錯誤
16: Code has no effect — 代碼不可能執行到
17: Compound statement missing{ — 分程序漏掉"{"
18: Conflicting type modifiers — 不明確的類型說明符
19: Constant expression required — 要求常量表達式
20: Constant out of range in comparison — 在比較中常量超出范圍
21: Conversion may lose significant digits — 轉換時會丟失意義的數字
22: Conversion of near pointer not allowed — 不允許轉換近指針
23: Could not find file xxx — 找不到XXX文件
24: Declaration missing ; — 說明缺少";"
25: Declaration syntax error — 說明中出現語法錯誤
26: Default outside of switch — Default 出現在switch語句之外
27: Define directive needs an identifier — 定義編譯預處理需要標識符
28: Division by zero — 用零作除數
29: Do statement must have while — Do-while語句中缺少while部分
30: Enum syntax error — 枚舉類型語法錯誤
31: Enumeration constant syntax error — 枚舉常數語法錯誤
32: Error directive :xxx — 錯誤的編譯預處理命令
33: Error writing output file — 寫輸出文件錯誤
34: Expression syntax error — 表達式語法錯誤
35: Extra parameter in call — 調用時出現多餘錯誤
36: File name too long — 文件名太長
37: Function call missing ) — 函數調用缺少右括弧
38: Fuction definition out of place — 函數定義位置錯誤
39: Fuction should return a value — 函數必需返回一個值
40: Goto statement missing label — Goto語句沒有標號
41: Hexadecimal or octal constant too large — 16進制或8進制常數太大
42: Illegal character x — 非法字元x
43: Illegal initialization — 非法的初始化
44: Illegal octal digit — 非法的8進制數字 A
45: Illegal pointer subtraction — 非法的指針相減
46: Illegal structure operation — 非法的結構體操作
47: Illegal use of floating point — 非法的浮點運算
48: Illegal use of pointer — 指針使用非法
49: Improper use of a typedefsymbol — 類型定義符號使用不恰當
50: In-line assembly not allowed — 不允許使用行間匯編
51: Incompatible storage class — 存儲類別不相容
52: Incompatible type conversion — 不相容的類型轉換
53: Incorrect number format — 錯誤的數據格式
54: Incorrect use of default — Default使用不當
55: Invalid indirection — 無效的間接運算
56: Invalid pointer addition — 指針相加無效
57: Irrecible expression tree — 無法執行的表達式運算
58: Lvalue required — 需要邏輯值0或非0值
59: Macro argument syntax error — 宏參數語法錯誤
60: Macro expansion too long — 宏的擴展以後太長
61: Mismatched number of parameters in definition — 定義中參數個數不匹配
62: Misplaced break — 此處不應出現break語句
63: Misplaced continue — 此處不應出現continue語句
64: Misplaced decimal point — 此處不應出現小數點
65: Misplaced elif directive — 不應編譯預處理elif
66: Misplaced else — 此處不應出現else
67: Misplaced else directive — 此處不應出現編譯預處理else
68: Misplaced endif directive — 此處不應出現編譯預處理endif
69: Must be addressable — 必須是可以編址的
70: Must take address of memory location — 必須存儲定位的地址
71: No declaration for function xxx — 沒有函數xxx的說明
72: No stack — 缺少堆棧
73: No type information — 沒有類型信息
74: Non-portable pointer assignment — 不可移動的指針(地址常數)賦值
75: Non-portable pointer comparison — 不可移動的指針(地址常數)比較
76: Non-portable pointer conversion — 不可移動的指針(地址常數)轉換
77: Not a valid expression format type — 不合法的表達式格式
78: Not an allowed type — 不允許使用的類型
79: Numeric constant too large — 數值常太大
80: Out of memory — 內存不夠用
81: Parameter xxx is never used — 能數xxx沒有用到
82: Pointer required on left side of -> — 符號->的左邊必須是指針
83: Possible use of xxx before definition — 在定義之前就使用了xxx(警告)
84: Possibly incorrect assignment — 賦值可能不正確
85: Redeclaration of xxx — 重復定義了xxx
86: Redefinition of xxx is not identical — xxx的兩次定義不一致
87: Register allocation failure — 寄存器定址失敗
88: Repeat count needs an lvalue — 重復計數需要邏輯值
89: Size of structure or array not known — 結構體或數給大小不確定
90: Statement missing ; — 語句後缺少";"
91: Structure or union syntax error — 結構體或聯合體語法錯誤
92: Structure size too large — 結構體尺寸太大
93: Sub scripting missing ] — 下標缺少右方括弧
94: Superfluous & with function or array — 函數或數組中有多餘的"&"
95: Suspicious pointer conversion — 可疑的指針轉換
96: Symbol limit exceeded — 符號超限
97: Too few parameters in call — 函數調用時的實參少於函數的參數不
98: Too many default cases — Default太多(switch語句中一個)
99: Too many error or warning messages — 錯誤或警告信息太多
100: Too many type in declaration — 說明中類型太多
101: Too much auto memory in function — 函數用到的局部存儲太多
102: Too much global data defined in file — 文件中全局數據太多
103: Two consecutive dots — 兩個連續的句點
104: Type mismatch in parameter xxx — 參數xxx類型不匹配
105: Type mismatch in redeclaration of xxx — xxx重定義的類型不匹配
106: Unable to create output file xxx — 無法建立輸出文件xxx
107: Unable to open include file xxx — 無法打開被包含的文件xxx
108: Unable to open input file xxx — 無法打開輸入文件xxx
109: Undefined label xxx — 沒有定義的標號xxx
110: Undefined structure xxx — 沒有定義的結構xxx
111: Undefined symbol xxx — 沒有定義的符號xxx
112: Unexpected end of file in comment started on line xxx — 從xxx行開始的註解尚未結束文件不能結束
113: Unexpected end of file in conditional started on line xxx — 從xxx 開始的條件語句尚未結束文件不能結束
114: Unknown assemble instruction — 未知的匯編結構
115: Unknown option — 未知的操作
116: Unknown preprocessor directive: xxx — 不認識的預處理命令xxx
117: Unreachable code — 無路可達的代碼
118: Unterminated string or character constant — 字元串缺少引號
119: User break — 用戶強行中斷了程序
120: Void functions may not return a value — Void類型的函數不應有返回值
121: Wrong number of arguments — 調用函數的參數數目錯
122: xxx not an argument — xxx不是參數
123: xxx not part of structure — xxx不是結構體的一部分
124: xxx statement missing ( — xxx語句缺少左括弧
125: xxx statement missing ) — xxx語句缺少右括弧
126: xxx statement missing ; — xxx缺少分號
127: xxx declared but never used — 說明了xxx但沒有使用
128: xxx is assigned a value which is never used — 給xxx賦了值但未用過

⑵ c語言程序運行出錯

char k, name, email, turename, password;
你定義的的name, email, turename, password;都是字元類型,而用到的是字元數組,類型當然不對,同意樓上所指出的,將上述定義語句改為
int k;
char name[1000];
char email[1000];
char turename[1000];
char password[1000];
注意格式,每一行定義一個會讓你的程序清晰一些,可讀性好一些,養好一個好的編碼習慣。

⑶ 為什麼運行C++老是有一個錯誤

沒代碼說個毛線

⑷ 關於c++提示的錯誤語句

多總結,多學習
TURBOC編譯錯誤信息說明大全
#operator not followed by maco argument name
#運算符後沒跟宏變元名
Ambiguous operators need parentheses
不明確的運算需要用括弧括起
Ambiguous symbol ''xxx''
不明確的符號
Argument # missing name
參數#名丟失
Argument list syntax error
參數表語法錯誤
Array bounds missing
丟失數組界限符
Array size too large
數組尺寸太大
Assembler statement too long
匯編語句太長
Bad call of in-line function
內部函數非法調用
Bad character in paramenters
參數中有不適當的字元
Bad configuration file
配置文件不正確
Bad file name format in include directive
包含命令中文件名格式不正確
Bad ifdef directive synatax
編譯預處理ifdef有語法錯
Bad ifndef directive syntax
編譯預處理ifndef指令語法錯誤
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 出現在switch外
Case statement missing
Case語句漏掉
Case syntax error
Case 語法錯誤
Character constant too long
字元常量太長
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 needs type or storage class
說明必須給出類型或存儲類
Declaration syntax error
說明中出現語法錯誤
Default outside of switch
Default 出現在switch語句之外
Define directive needs an identifier
編譯預處理指令Define需要標識符
Division by zero
用零作除數
Do statement must have while
Do-while語句中缺少while部分
DO while statement missing (
Do while語句中漏掉了符號 "("
Do while statement missing;
Do while語句中掉了分號
Duplicate Case
Case情況不唯一
Enum syntax error
枚舉類型語法錯誤
Enumeration constant syntax error
枚舉常數語法錯誤
Error directive :xxx
錯誤的編譯預處理命令
Error writing output file
寫輸出文件錯誤
Expression syntax error
表達式語法錯誤
Extra parameter in call
調用時出現多餘參數
Extra parameter in call to xxxxxx
調用xxxxxxxx函數時出現了多餘參數
File name too long
文件名太長
For statement missing )
For語名缺少")"
For statement missing(
For語句缺少"("
For statement missing;
For 語句缺少";"
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進制常數太大
If statement missing(
If語句缺少"("
If statement missing)
If語句缺少")"
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 typedef symbol
類型定義符號使用不恰當
In-line assembly not allowed
不允許使用行間匯編
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
Default使用不當
Initializer syntax error
初始化語法錯誤
Invalid indirection
無效的間接運算
Invalid macro argument separator
無效的宏參數分隔符
Invalid pointer addition
指針相加無效
Irrecible expression tree
無法執行的表達式運算
Invalid use of dot
點使用錯
Lvalue required is assigned a value
需要邏輯值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
此處不應出現小數點xxx''
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 file name ending
無文件終止符
No file names given
未給出文件名
No stack
缺少堆棧
No type information
沒有類型信息
Non-portable pointer assignment
對不可移動的指針(地址常數)賦值
Non-portable pointer comparison
不可移動的指針(地址常數)比較
Non-portable pointer conversion
不可移動的指針(地址常數)轉換
Non-protable return type 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
結構體尺寸太大
Subscripting missing ]
下標缺少右方括弧
Superfluous & with function or array
函數或數組中有多餘的"&"
Suspicious pointer conversion
可疑的指針轉換
Switch statement missing (
switch 語句缺少"("
Switch statement missing )
switch 語句缺少")"
Symbol limit exceeded
符號超限
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
Default太多(switch語句中一個)
Too many exponents
階碼太多
Too many initializers
初始化太多
Too many error or warning messages
錯誤或警告信息太多
Too many storage classes in declaration
說明中存儲類太多
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 #
參數"#"類型不匹配
Type mismatch in parameter # in call to 'XXXXXXX'
調用'XXXXXXX'時參數#類型不匹配
Type mismatch in parameter xxx
參數xxx類型不匹配
Type mismatch in parameter 'YYYYYYYY' in call to 'YYYYYYYY'
調用'YYYYYYY'時參數'XXXXXXXX'數型不匹配
Type mismatch in redeclaration of ''xxx''
xxx重定義的類型不匹配
Unable to create output file ''xxx''
無法建立輸出文件xxx
Unable to create turboc.lnk
不能創建turboc.lnk
Unable to execute command 'xxxxxxxx'
不能執行'xxxxxxxx'命令
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
源文件在#行開始的條件語句中意外結束
Unknown assemble instruction
未知的匯編結構
Unknown option
未知的操作
Unknown preprocessor directive: ''xxx''
不認識的預處理命令xxx
Unreachable code
無路可達的代碼
Untermimated character constant
未終結的字元常量
Unterminated string
未終結的串
Unterminated string or character constant
字元串或字元常量缺少引號
User break
用戶強行中斷了程序
Value required
賦值請求
Void functions may not return a value
Void類型的函數不應有返回值
While statement missing (
While語句漏掉 '('
While statement missing )
While語句漏掉 ')'
Wrong number of arguments in of 'xxxxxxxx'
調用'xxxxxxxx'時參數個數錯誤
'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
結構體的長度為零

⑸ NCNN編譯問題匯總

錯誤如下:
./obj/local/armeabi-v7a/libetcard.a(EtEncryptedDataReader.o):EtEncryptedDataReader.cpp:typeinfo for EtCard::EtEncryptedDataReader: error: undefined reference to 'typeinfo for etncnn::DataReader'
collect2.exe: error: ld returned 1 exit status

解決方案:
① 找到編譯的Application.mk文件
② 找到如下參數配置: APP_CPPFLAGS := -frtti -std=c++11
③ 刪除黑體部分"-frtti"配置
以上方法以-frtti為例,解決思路由於編譯ncnn-include庫的時候在編譯命令中沒有加-frtti的,所以導致ndk編譯ncnn出現
無法找到此庫,因此會出現如上相似的錯誤

錯誤如下:

解決方案:
Application.mk文件中添加->APP_CPPFLAGS += -fexceptions

如下圖,編譯發現兩個方法找不到。

我們可以分析的點如下:
① 找不到2個方法,但是其他同類的ncnn方法沒有異常
② 仔細檢查頭文件,是否包含net.h的介面定義,結果是都引入了(否則其他方法會報錯)
③ 最後分析無果,可以確定的是,這兩個方法,確實目前的環境下無法鏈接到。
以上分析之後, 總結我們其他方法可以正常引用,說明ncnn庫鏈接沒問題,其次,只有這兩個方法找不到,說明我們目前編譯環境可能不包含此方法。
所以我們可以得知方法來源為ncnn的庫,也就是說我們當前使用的ncnn庫不包含此方法。
有了這個思路我們嘗試更新了一下新的ncnn庫,最終問題得到解決可以編譯成功。

⑹ uniapp項目編譯報錯匯總(持續更新中)

分析:語法錯誤(單引號裡面不能包含雙引號)

修改:雙引號裡麵包含單引號

⑺ C語言調試中syntax error 是什麼意思

C語言中的syntax error是語法錯誤的意思,「語法錯誤」是在輸入代碼過程中輸入錯誤的語句,是程序發生了語法上的錯誤。

1、syntax error錯誤,例子:printf("trete")就是一個有語法錯誤的句子,它沒有加分號,正確的應該為:printf("trete"),不正確就會彈出syntax error。

2、在C/C++中指語句的格式不對,比如少寫了分號、少寫或多寫了括弧、寫錯了關鍵字等。

3、如果是java語言在myeclipse下做開發,這個錯誤是該腳本語言所用的語言編碼不對,可換成UTF-8或者GBK。在Java語言中,以下的程式是正確的:System.out.println("Hello World")以下的程式不正確:System.out.println(Hello World)。

(7)編譯錯誤大全擴展閱讀

C語言的特性

1、C語言是一個有結構化程序設計、具有變數作用域(variable scope)以及遞歸功能的過程式語言。

2、C語言傳遞參數均是以值傳遞(pass by value),另外也可以傳遞指針(a pointer passed by value)。

3、不同的變數類型可以用結構體(struct)組合在一起。

4、只有32個保留字(reserved keywords),使變數、函數命名有更多彈性。

5、部分的變數類型可以轉換,例如整型和字元型變數。

6、透過指針(pointer),C語言可以容易的對存儲器進行低級控制。

7、編譯預處理(preprocessor)讓C語言的編譯更具有彈性。

熱點內容
反編譯軟體id 發布:2024-04-20 10:29:49 瀏覽:44
視頻太長怎麼壓縮發微信 發布:2024-04-20 10:00:14 瀏覽:384
顯卡怎麼保存配置 發布:2024-04-20 09:28:52 瀏覽:596
校園交易網站源碼 發布:2024-04-20 09:18:54 瀏覽:701
江蘇北斗授時伺服器ip雲空間 發布:2024-04-20 08:53:50 瀏覽:931
dedecms批量上傳圖片 發布:2024-04-20 08:42:11 瀏覽:966
酷q如何編譯 發布:2024-04-20 08:41:27 瀏覽:79
安卓手機數字人民幣怎麼下載 發布:2024-04-20 08:38:21 瀏覽:114
access如何配置資料庫 發布:2024-04-20 08:37:35 瀏覽:504
手寫輸入演算法 發布:2024-04-20 08:29:31 瀏覽:258