{"id":1435,"date":"2018-11-17T07:10:34","date_gmt":"2018-11-17T07:10:34","guid":{"rendered":""},"modified":"2018-11-17T15:11:10","modified_gmt":"2018-11-17T07:11:10","slug":"%e5%8d%95%e7%89%87%e6%9c%ba%e8%b0%83%e8%af%95%e6%9c%89%e9%82%a3%e4%ba%9b%e5%b8%b8%e8%a7%81%e9%97%ae%e9%a2%98%e5%a6%82%e4%bd%95%e8%a7%a3%e5%86%b3","status":"publish","type":"post","link":"http:\/\/www.szryc.com\/?p=1435","title":{"rendered":"\u5355\u7247\u673a\u8c03\u8bd5\u6709\u90a3\u4e9b\u5e38\u89c1\u95ee\u9898\u5982\u4f55\u89e3\u51b3"},"content":{"rendered":"
\n\t.error: #18:<\/p>\n
\n\t6.error: #18: expecte<\/u>d a ")"<\/p>\n \n\t\u5982\u679c\u662f\u51fa\u73b0\u5728c\u6587\u4ef6\u4e2d, \u591a\u534a\u662f\u56e0\u4e3a\u5c11\u4e86\u4e00\u4e2a")",\u6216\u8005\u9519\u8bef\u884c\u6709\u7f16\u8bd1\u5668\u4e0d\u8bc6\u522b\u7684\u5b57\u7b26<\/p>\n \n\t\u5982\u679c\u51fa\u73b0\u5728\u5934\u6587\u4ef6\u4e2d,\u9519\u8bef\u884c\u53c8\u662f\u4e00\u4e2a\u51fd\u6570\u58f0\u660e,\u591a\u534a\u662f\u56e0\u4e3a\u5728\u51fd\u6570\u58f0\u660e\u4e2d\u6709\u7f16\u8bd1\u5668\u4e0d\u8ba4\u8bc6\u7684\u5b57\u7b26<\/p>\n \n\t<\/p>\n \n\terror: #20<\/p>\n \n\terror: #20: identi<\/u>fier "TIM2_IRQChannel" is undefined \u8c01\u80fd\u8bf4\u8bf4\uff0c\u54ea\u91cc\u9519\u4e86<\/p>\n \n\t\u4f60\u7684\u56fa\u4ef6\u5e93\u91cc\u7684\u5e93\u6587\u4ef6\u6ca1\u6709\u6dfb\u52a0\u8fdb\u5de5\u7a0b\u91cc\u9762\uff0c\u6240\u4ee5\u51fa\u73b0\u672a\u5b9a\u4e49\u7684\u60c5\u51b5\u3002<\/p>\n \n\tTIM2_IRQChannel\u6307\u5b9a\u65f6\u5668<\/u>2\u7684\u4e2d\u65ad\u901a\u9053\u6ca1\u6709\u5b9a\u4e49\uff0c\u5176\u5b9e\u5728\u56fa\u4ef6\u5e93\u5bf9\u8fd9\u4e9b\u53c2\u6570\u90fd\u6709\u5b9a\u4e49\uff0c\u5b8f\u5b9a\u4e49\u4ee3\u66ff\u4e86\u4e00\u4e32\u5bc4\u5b58\u5668<\/u>\u5730\u5740\u6570\u636e\u3002\u9700\u8981\u5c06.C\u6587\u4ef6\u6dfb\u52a0\u5230\u5de5\u7a0b\u6587\u4ef6\u4e2d<\/p>\n \n\twarning: #1-D<\/p>\n \n\tmai<\/u>n.c(7): warning: #1-D: last line of file ends without a newline<\/p>\n \n\t\u5f53\u4f7f\u7528keil<\/u>\u7f16\u8bd1\u65f6\uff0c\u5f39\u51fa\u8fd9\u6837\u7684\u8b66\u544a\u4fe1\u606f\uff1amain.c(7): warning: #1-D: last line of file ends without a newline<\/p>\n \n\t\u8fd9\u4e2a\u662f\u7531\u4e8e\u5728main\u51fd\u6570\u7684“}”\u540e\uff0c\u6ca1\u6709\u52a0\u56de\u8f66\u3002<\/p>\n \n\t\u53ea\u8981\u5728main\u51fd\u6570\u7684“}”\u540e\u52a0\u56de\u8f66\u952e\uff0c\u6b64\u8b66\u544a\u4fe1\u606f\u5373\u53ef\u6d88\u9664\u3002<\/p>\n \n\terror:#65<\/p>\n \n\t...test_menu.c(27):error:#65:expected a ";"<\/p>\n \n\t\u5206\u6570\u9001\u4f60\u4e86\uff0c\u95ee\u9898\u5728\u4f60\u56de\u7b54\u4e4b\u524d\u5df2\u7ecf\u89e3\u51b3\u4e86\uff0c\u5934\u6587\u4ef6\u91cc\u7684\u7ed3\u6784\u4f53\u5b9a\u4e49\u91cc\u7684\u6700\u540e\u4e00\u884c\u6ca1\u6709\u52a0";" \u5982 NB menu{..};<\/p>\n \n\tError: L6200E<\/p>\n \n\tError: L6200E: Symbol temp multiply defined (by wenshidu.o and main.o).\u5728\u7f16\u8bd1\u7684\u65f6\u5019\u51fa\u73b0\u4e86\u8fd9\u4e2a\u95ee\u9898\uff0c\u4f46\u662f\u68c0\u67e5\u4e0d\u51fa\u6765\uff0c\u5e0c\u671b\u5404\u4f4d\u5927\u4fa0\u5e2e\u5e2e\u5fd9<\/p>\n \n\t\u4ec0\u4e48\u53d8\u91cf\u4f60\u7ed9\u4ed8\u4e86\u4e24\u6b21\u503c<\/p>\n \n\t\u4f60\u770b\u770b\u662f\u4e0d\u662f\u90a3\u4e2a\u5916\u90e8\u53d8\u91cf\u4f60\u53c8\u7ed9\u8d4b\u503c\u4e86<\/p>\n \n\tmain.c\u7533\u660e\uff0c\u5176\u4ed6.c\u6587\u4ef6\u5bf9\u5e94\u7684.h\u6587\u4ef6\u4e2d\u7528extern\u5f15\u7528<\/p>\n \n\twarning: #223-D<\/p>\n \n\t..\\..\\source\\CCxx00_New.C(718): warning: #223-D: function "_NOP_" declared implicitly<\/p>\n \n\t\u5728\u4f7f\u7528\u7684\u6587\u4ef6\u4e2d\u6dfb\u52a0extern void _NOP_();\u65e2\u53ef<\/p>\n \n\twarning: #1295-D<\/p>\n \n\t..\\..\\include\\CCxx00_New.h(20): warning: #1295-D: Deprecated declaration CC_XCal - give arg types<\/p>\n \n\t\u6ca1\u6709\u7528\u5f62\u53c2 \u5b9a\u65f6\u65f6\u7528void CC_XCal(void);\u5373\u53ef<\/p>\n \n\tError: L6218E: Undefined symbol<\/p>\n \n\t.\\Obj\\output.axf: Error: L6218E: Undefined symbol FSMC_NORS<\/u>RAM<\/u>Cmd (referred from<\/u> tft_lcd.o).<\/p>\n \n\t.\\Obj\\output.axf: Error: L6218E: Undefined symbol FSMC_NORSRAMInit (referred from tft_lcd.o).<\/p>\n \n\tTarget not created<\/p>\n \n\t\u8bf7\u6559\u9ad8\u4eba\uff0c\u6211\u8be5\u5982\u4f55\u5904\u7406\u3002<\/p>\n \n\t\u4f60\u770b\u770btft_lcd\u91cc\u9762\u6709\u6ca1\u6709\u6dfb\u52a0fsmcXXX.h\u4e4b\u7c7b\u7684\u5934\u6587\u4ef6\uff0c\u8fd9\u4e2a\u9519\u8bef\u662f\u8bf4\u4f60\u4f7f\u7528\u7684\u51fd\u6570\u6ca1\u6709\u88ab\u5b9a\u4e49\u3002<\/p>\n \n\t\u4e00\u822c\u53ea\u8981\u6dfb\u52a0\u76f8\u5e94\u7684\u5934\u6587\u4ef6\u5373\u53ef<\/p>\n \n\terror: #101:<\/p>\n \n\terror: #101: has already been declared in the current scope<\/p>\n \n\t\u5c06<\/p>\n \n\t#ifndef __STM32<\/u>F10x_LIB_H<\/p>\n \n\t#define __STM32F10x_LIB_H<\/p>\n \n\t#endif\u8c03\u6574\u5230\u6700\u540e!<\/p>\n \n\tfile:\/\/\/C:\\Users\\ADMINI~1\\AppData\\Local\\Temp\\ksohtml\\wps_clip_image-20349.png<\/p>\n \n\terror: #247: function "DelayUs" has already been defined<\/p>\n \n\t\u6709\u4e00\u4e2a\u540c\u540d\u7684 DelayUs\u7c7b\u5df2\u7ecf\u88ab\u5b9a\u4e49\u8fc7\u4e86<\/p>\n \n\terror: #109: expression must have (pointer-to-) function type<\/p>\n \n\t\u8fd9\u4e2a\u95ee\u9898\u5c31\u662f\u90a319\u4e2aerror\u4e2d\u7684\u5927\u90e8\u5206\uff0c\u610f\u601d\u662f\u8868\u8fbe\u5f0f\u9700\u8981\u4e00\u4e2a(\u6307\u9488)\u51fd\u6570\u53c2\u6570\uff0c\u6211\u4e00\u5f00\u59cb\u4ee5\u4e3a\u662f\u81ea\u5df1\u51fd\u6570\u58f0\u660e\u6216\u8005\u8c03\u7528\u4e0a\u7684\u9519\u8bef\uff0c\u4f46\u662f\u770b\u4e86\u4e0b\u53d1\u73b0\u5e76\u6ca1\u6709\u9519\uff0c\u540e\u6765\u67e5\u4e86\u597d\u4e45\u53d1\u73b0\u539f\u6765\u662f\u72af\u4e86\u4e00\u4e2a\u5f88\u4f4e\u7ea7\u7684\u9519\u8bef\uff1a\u5c06\u5b8f\u5b9a\u4e49\u548c\u51fd\u6570\u540d\u91cd\u540d\u4e86\u3002\u56e0\u4e3a\u6211\u4e00\u5f00\u59cb\u60f3\u7684\u662f\u6bcf\u4e00\u4e2a\u5b8f\u5b9a\u4e49\u5bf9\u5e94\u4e00\u4e2a\u51fd\u6570\u540d\uff0c\u8fd9\u6837\u505a\u8d77\u6765\u5c31\u6bd4\u8f83\u6e05\u6670\uff0c\u4f46\u662f\u6211\u5374\u5f88\u50bb\u903c\u5730\u5c06\u51fd\u6570\u540d\u6bcf\u6b21\u76f4\u63a5\u590d\u5236\u5230\u5b8f\u540d\uff0c\u5bfc\u81f4\u4e86\u8fd9\u79cd\u86cb\u788e\u7684\u7ed3\u679c\u3002<\/p>\n \n\twarning: #61-D<\/p>\n \n\twarning: #68-D:<\/p>\n \n\t\u5728KeilARM<\/u>\u7684LPC<\/u>ARM,\u5b58\u5728(1<<31)\u7f16\u8bd1\u8b66\u544a\u95ee\u9898<\/p>\n \n\tmain.c(174): warning: #61-D: integer operation result is out of range<\/p>\n \n\tmain.c(174): warning: #68-D: integer conversion resulted in a change of sign<\/p>\n \n\t\u7531\u4e8e\u7f16\u8bd1\u5668\u9ed8\u8ba4signed int\u537332\u4f4d\u6709\u7b26\u53f7\u6574\u6570\u7c7b\u578b,\u800c1<<31\u5b9e\u9645\u4e3a0x80000000,<\/p>\n \n\t\u8fd9\u6837\u5c31\u6709\u53ef\u80fd\u6539\u5199\u4e86\u7b26\u53f7\u4f4d(\u6700\u9ad8\u4f4d)<\/p>\n \n\t\u4f9d\u6b64\u7c7b\u63a8,(2<<30),(3<<29)...\u7b49\u90fd\u4f1a\u51fa\u73b0\u7f16\u8bd1\u8b66\u544a\u95ee\u9898.<\/p>\n \n\t\u89e3\u51b3\u529e\u6cd5\u4e3a: ((unsigned int)1<<31),((unsigned int)2<<30),...<\/p>\n \n\twarning: #1295-D:<\/p>\n \n\twarning: #1295-D: Deprecated declaration ShowSendTime - give arg types<\/p>\n \n\t\u89e3\u51b3\u65b9\u6cd5\uff1a\u5c06void ShowSendTime()\u6539\u4e3avoid ShowSendTime(void)<\/p>\n \n\twarning: #550-D:<\/p>\n \n\twarning: #550-D: variable "d" was set but never used<\/p>\n \n\t\u63cf\u8ff0:\u53d8\u91cf'd'\u5b9a\u4e49\u4f46\u4ece\u672a\u4f7f\u7528,\u6216\u8005\u662f,\u867d\u7136\u8fd9\u4e2a\u53d8\u91cf\u4f60\u4f7f\u7528\u4e86,\u4f46\u7f16\u8bd1\u5668\u8ba4\u4e3a\u53d8\u91cfd\u6240\u5728\u7684\u8bed\u53e5\u6ca1\u6709\u610f\u4e49,\u7f16\u8bd1\u5668\u628a\u5b83\u4f18\u5316\u4e86.<\/p>\n \n\t\u89e3\u51b3:\u4ed4\u7ec6\u8861\u91cf\u6240\u5b9a\u4e49\u7684\u53d8\u91cfd\u662f\u5426\u6709\u7528,\u82e5\u662f\u8ba4\u5b9a\u53d8\u91cfd\u6240\u5728\u8bed\u53e5\u6709\u610f\u4e49,\u90a3\u4e48\u5c1d\u8bd5\u7528volatile\u5173\u952e\u5b57\u4fee\u9970\u53d8\u91cfd,\u82e5\u662f\u771f\u7684\u6ca1\u6709\u7528,\u90a3\u4e48\u5220\u9664\u6389\u4ee5\u91ca\u653e\u53ef\u80fd\u7684\u5185\u5b58.<\/p>\n \n\terror: #159:<\/p>\n \n\t.error: #159: declaration is incompatible with previous "wr_lcd" (declared at line 40)<\/p>\n \n\tvoid a(void) \/\/\u51fd\u6570a\u7684\u5b9e\u4f53<\/p>\n \n\t{<\/p>\n \n\tb(); \/\/\u8c03\u7528\u51fd\u6570b<\/p>\n \n\t}<\/p>\n \n\tvoid b(void) \/\/\u51fd\u6570b\u7684\u5b9e\u4f53<\/p>\n \n\t{<\/p>\n \n\t...<\/p>\n \n\t}<\/p>\n \n\t\u8fd9\u6837\u5982\u679c\u70b9\u7f16\u8bd1,\u5c31\u4f1a\u4ea7\u751ferror: #159\u7684\u9519\u8bef,\u56e0\u4e3a\u5f53\u51fd\u6570a\u8c03\u7528\u51fd\u6570b\u65f6,\u53d1\u73b0\u5728\u8fd9\u4e4b\u524d\u90fd\u6ca1\u6709\u51fd\u6570b\u7684\u4efb\u4f55\u58f0\u660e.<\/p>\n \n\t\u89e3\u51b3\u65b9\u6cd5:\u5728\u51fd\u6570a\u8c03\u7528\u51fd\u6570b\u4e4b\u524d,\u5bf9\u51fd\u6570b\u8fdb\u884c\u58f0\u660e,\u5982:<\/p>\n \n\tvoid b(void); \/\/\u5bf9\u51fd\u6570b\u8fdb\u884c\u58f0\u660e<\/p>\n \n\tvoid a(void) \/\/\u51fd\u6570a\u7684\u5b9e\u4f53<\/p>\n \n\t{<\/p>\n \n\tb(); \/\/\u8c03\u7528\u51fd\u6570b<\/p>\n \n\t}<\/p>\n \n\tvoid b(void) \/\/\u51fd\u6570b\u7684\u5b9e\u4f53<\/p>\n \n\t{<\/p>\n \n\t...<\/p>\n \n\t}<\/p>\n \n\terror: #70:<\/p>\n \n\terror: #70: incomplete type is not allowed<\/p>\n \n\t\u539f\u6765\u662f\u91cd\u590d\u5b9a\u4e49\u4e86\uff0c\u5305\u542b\u4e86\u4e24\u6b21\u7684psoc<\/u>k\u7684\u5b9a\u4e49\uff0c\u6240\u4ee5\u624d\u4f1a\u51fa\u73b0\u8fd9\u79cd\u60c5\u51b5\u3002\u56e0\u4e3a\u6211\u53d1\u73b0psock\u548cpt\u662f\u4e00\u6837\u5b9a\u4e49\u7684\uff0c\u4f46\u662fpt\u662f\u4e0d\u62a5\u9519\u7684\uff0c\u6240\u4ee5\u6211\u5c31\u8bd5\u56fe\u5220\u9664\u5934\u6587\u4ef6\u4e2dinclude\u5934\u6587\u4ef6\u7684\u90a3\u4e00\u884c\uff0c\u9519\u8bef\u6d88\u9664\u4e86\uff0c\u8c22\u8c22\u4f60\u4e86\uff0c\u8fd8\u662f\u5b9e\u8df5\u51fa\u771f\u77e5\u554a\uff0c\u6709\u4e9b\u65f6\u5019\u4e0d\u80fd\u6b7b\u7f16\uff0c\u8981\u601d\u8003\uff0c\u54c8\u54c8\u3002<\/p>\n \n\twarning: #550-D:<\/p>\n \n\t1.warning: #550-D: variable "d" was set but never used<\/p>\n \n\t\u63cf\u8ff0:\u53d8\u91cf'd'\u5b9a\u4e49\u4f46\u4ece\u672a\u4f7f\u7528,\u6216\u8005\u662f,\u867d\u7136\u8fd9\u4e2a\u53d8\u91cf\u4f60\u4f7f\u7528\u4e86,\u4f46\u7f16\u8bd1\u5668\u8ba4\u4e3a\u53d8\u91cfd\u6240\u5728\u7684\u8bed\u53e5\u6ca1\u6709\u610f\u4e49,\u7f16\u8bd1\u5668\u628a\u5b83\u4f18\u5316\u4e86.<\/p>\n \n\t\u89e3\u51b3:\u4ed4\u7ec6\u8861\u91cf\u6240\u5b9a\u4e49\u7684\u53d8\u91cfd\u662f\u5426\u6709\u7528,\u82e5\u662f\u8ba4\u5b9a\u53d8\u91cfd\u6240\u5728\u8bed\u53e5\u6709\u610f\u4e49,\u90a3\u4e48\u5c1d\u8bd5\u7528volatile\u5173\u952e\u5b57\u4fee\u9970\u53d8\u91cfd,\u82e5\u662f\u771f\u7684\u6ca1\u6709\u7528,\u90a3\u4e48\u5220\u9664\u6389\u4ee5\u91ca\u653e\u53ef\u80fd\u7684\u5185\u5b58.<\/p>\n \n\twarning: #1-D:<\/p>\n \n\t2.warning: #1-D: last line of file ends without a newline<\/p>\n \n\t\u63cf\u8ff0:\u6587\u4ef6\u6700\u540e\u4e00\u884c\u4e0d\u662f\u65b0\u7684\u4e00\u884c.\u7f16\u8bd1\u5668\u8981\u6c42\u7a0b\u5e8f\u6587\u4ef6\u7684\u6700\u540e\u4e00\u884c\u5fc5\u987b\u662f\u7a7a\u884c,\u60f3\u4e86\u534a\u5929\u6ca1\u60f3\u901a\u4e3a\u4ec0\u4e48\u8981\u8fd9\u6837.<\/p>\n \n\t\u89e3\u51b3:\u53ef\u4ee5\u4e0d\u7406\u4f1a.\u82e5\u662f\u89c9\u5f97\u51fa\u73b0\u8b66\u544a\u4e0d\u723d,\u90a3\u4e48\u5728\u51fa\u73b0\u8b66\u544a\u7684\u6587\u4ef6\u7684\u6700\u540e\u4e00\u884c\u6572\u4e2a\u56de\u8f66,\u7a7a\u51fa\u4e00\u884c.<\/p>\n \n\twarning: #111-D:<\/p>\n \n\t3. warning: #111-D: statement is unreachable<\/p>\n \n\t\u63cf\u8ff0:\u58f0\u660e\u4e0d\u53ef\u80fd\u5230\u8fbe.\u591a\u51fa\u73b0\u5728\u8fd9\u79cd\u573a\u5408:<\/p>\n \n\tint main(void)<\/p>\n \n\t{<\/p>\n \n\t...<\/p>\n \n\twhile(1) \/\/\u65e0\u9650\u5faa\u73af,\u8fd9\u5728\u4e0d\u4f7f\u7528\u64cd\u4f5c\u7cfb\u7edf\u7684\u7a0b\u5e8f\u4e2d\u6700\u5e38\u89c1<\/p>\n \n\t{<\/p>\n \n\t...<\/p>\n \n\t}<\/p>\n \n\treturn 0; \/\/\u8fd9\u53e5\u58f0\u660e\u5728\u6b63\u5e38\u60c5\u51b5\u4e0b\u4e0d\u53ef\u80fd\u6267\u884c\u5230,\u7f16\u8bd1\u5668\u53d1\u51fa\u8b66\u544a<\/p>\n \n\t}<\/p>\n \n\t\u89e3\u51b3:\u4e0d\u7406\u4f1a.<\/p>\n \n\twarning: C3017W:<\/p>\n \n\t4. warning: C3017W: data may be used before being set<\/p>\n \n\t\u63cf\u8ff0:\u53d8\u91cf'data'\u5728\u4f7f\u7528\u524d\u6ca1\u6709\u660e\u786e\u7684\u8d4b\u503c.\u5982:<\/p>\n \n\tuint8 i,data; \/\/\u5b9a\u4e49\u53d8\u91cfi\u548cdata,\u4e8c\u8005\u90fd\u6ca1\u6709\u660e\u786e\u8d4b\u503c<\/p>\n \n\tfor ( i = 0; i < 8; i++) \/\/\u53d8\u91cf'i'\u5728\u8bed\u53e5\u4e2d\u88ab\u8d4b\u503c0<\/p>\n \n\t{<\/p>\n \n\tif ( IO1PI<\/u>N & SO_CC2420 )<\/p>\n \n\tdata |= 0x01; \/\/\u53d8\u91cf'data'\u5728\u4f7f\u7528\u524d\u6ca1\u6709\u660e\u786e\u8d4b\u503c,\u7f16\u8bd1\u5668\u53d1\u51fa\u8b66\u544a<\/p>\n \n\telse<\/p>\n \n\tdata &= ~0x01;<\/p>\n \n\t}<\/p>\n \n\t\u89e3\u51b3:\u5e94\u4ed4\u7ec6\u8861\u91cf\u8be5\u53d8\u91cf\u7684\u521d\u59cb\u503c\u662f\u5426\u4e3a0\uff0c\u82e5\u662f,\u53ef\u4ee5\u4e0d\u7406\u4f1a\u8fd9\u4e2a\u8b66\u544a,\u56e0\u4e3aMDK\u7f16\u8bd1\u5668\u5728\u7a0b\u5e8f\u6267\u884c\u524d,\u4f1a\u5c06\u4f7f\u7528\u5230\u7684\u6570\u636e\u533a\u521d\u59cb\u5316\u4e3a0,\u4f46\u82e5\u662f\u8be5\u53d8\u91cf\u7684\u521d\u59cb\u503c\u4e0d\u5e94\u8be5\u662f0\uff0c\u5ffd\u7565\u8fd9\u4e2a\u8b66\u544a\u53ef\u80fd\u4f1a\u5f15\u8d77\u81f4\u547d\u9519\u8bef.\u8fd9\u4e2a\u8b66\u544a\u5e94\u5f15\u8d77\u8db3\u591f\u91cd\u89c6.\u5e94\u517b\u6210\u53d8\u91cf\u8d4b\u521d\u503c\u7684\u4e60\u60ef,\u597d\u5728\u6709\u7f16\u8bd1\u5668\u7ed9\u628a\u5173.<\/p>\n \n\twarning: #177-D:<\/p>\n \n\t5. warning: #177-D: variable "temp" was declared but never referenced<\/p>\n \n\t\u63cf\u8ff0:\u53d8\u91cf'temp'\u8fdb\u884c\u4e86\u58f0\u660e\u4f46\u6ca1\u6709\u5f15\u7528.\u591a\u51fa\u73b0\u5728\u58f0\u660e\u4e86\u4e00\u4e2a\u53d8\u91cf,\u4f46\u5374\u6ca1\u6709\u4f7f\u7528\u5b83,\u5b83\u548cwarning: #550-D: variable "temp" was set but never used\u4e0d\u540c\u4e4b\u5904\u5728\u4e8etemp\u4ece\u6ca1\u6709\u4f7f\u7528\u8fc7.<\/p>\n \n\t\u89e3\u51b3:\u82e5\u662f\u5b9a\u4e49\u7684\u53d8\u91cf\u786e\u5b9e\u6ca1\u6709\u7528,\u5220\u9664\u6389;\u82e5\u662f\u6709\u7528,\u5219\u5728\u7a0b\u5e8f\u4e2d\u4f7f\u7528.<\/p>\n \n\t\u4e0e\u8be5\u8b66\u544a\u7c7b\u4f3c\u7684\u8fd8\u6709 warning: #177-D: function "MACProcessBeacon" was declared but never referenced<\/p>\n \n\twarning: #940-D:<\/p>\n \n\t6. warning: #940-D: missing return statement at end of non-void function "DealwithInspect2"<\/p>\n \n\t\u63cf\u8ff0:\u8fd4\u56de\u975e\u7a7a\u7684\u51fd\u6570"DealwithInspect2"\u7684\u6700\u540e\u7f3a\u5c11\u8fd4\u56de\u503c\u58f0\u660e.\u5982:<\/p>\n \n\tint DealwithInspect2(uint32 test)<\/p>\n \n\t{<\/p>\n \n\t...<\/p>\n \n\t...<\/p>\n \n\t...<\/p>\n \n\t\/\/\u6b64\u5904\u5e94\u8be5\u662freturn x;\u8fd4\u56de\u4e00\u4e2aint\u578b\u6570\u636e,\u82e5\u662f\u6ca1\u6709\u8fd4\u56de\u503c,\u7f16\u8bd1\u5668\u4ea7\u751f\u8b66\u544a<\/p>\n \n\t}<\/p>\n \n\t.warning: #1295-D:<\/p>\n \n\t7..warning: #1295-D: Deprecated declaration lcd_init - give arg types<\/p>\n \n\t\u63cf\u8ff0:\u5728\u5b9a\u4e49\u51fd\u6570\u7684\u65f6\u5019,\u5982\u679c\u4f60\u5199\u4e0a\u51fd\u6570\u53c2\u6570,\u5c31\u4f1a\u6709\u8fd9\u4e2a\u8b66\u544a,\u6bd4\u5982void timer_init(); \u8fd9\u91cc\u5c31\u6ca1\u6709\u5f62\u53c2,\u5982\u679c\u8fd9\u6837\u7684\u8bdd,\u7f16\u8bd1\u5668\u4f1a\u7ed9\u51fa\u8b66\u544a.<\/p>\n \n\terror: #65:<\/p>\n \n\t1. error: #65: expected a ";"<\/p>\n \n\t\u63cf\u8ff0:\u7f3a\u5c11\u5206\u53f7.\u5927\u591a\u662f\u6f0f\u5fd8';'.<\/p>\n \n\t\u89e3\u51b3:\u53cc\u51fb\u9519\u8bef\u884c,\u5728\u5b9a\u4f4d\u5230\u9519\u8bef\u70b9\u7684\u9644\u8fd1\u627e\u5230\u6ca1\u52a0';'\u53f7\u7684\u8bed\u53e5,\u52a0\u4e0a\u5206\u53f7.\u5e76\u4e0d\u4e00\u5b9a\u5728\u5b9a\u4f4d\u5230\u7684\u9519\u8bef\u884c\u624d\u5374\u5206\u53f7,\u53ef\u80fd\u662f\u8fd9\u884c\u7684\u4e0a\u4e00\u884c,\u4e5f\u53ef\u80fd\u662f\u4e0b\u4e00\u884c.<\/p>\n \n\terror: #65: error: #20<\/p>\n \n\t2. error: #65: expected a ";"\u548c error: #20: identifier "xxxx" is undefined\u4e00\u5757\u51fa\u73b0,\u800c\u4e14\u540e\u9762\u7684error: #20\u9519\u8bef\u53ef\u80fd\u4e00\u5927\u5806<\/p>\n \n\t\u63cf\u8ff0:\u8fd9\u4e2a\u9519\u8bef\u5bf9\u4e8e\u7b2c\u4e00\u6b21\u9047\u4e0a\u7684\u4eba\u6765\u8bf4\u7edd\u5bf9\u662f\u4e2a\u5669\u68a6,\u5f53\u9519\u8bef\u51fa\u73b0,\u6ee1\u6000\u5e0c\u671b\u7684\u53cc\u51fb\u9519\u8bef\u63d0\u793a,\u6765\u5230\u9519\u8bef\u884c\u65f6\u5374\u6115\u7136\u53d1\u73b0,\u9519\u8bef\u884c\u7edd\u5bf9\u6ca1\u6709\u9519,\u4e8e\u662f\u627e\u627e\u9519\u8bef\u884c\u7684\u4e0a\u4e00\u884c,\u4e0b\u4e00\u884c,\u6ca1\u6709\u9519\u8bef,\u518d\u627e\u4e0a\u4e0a\u884c,\u4e0b\u4e0b\u884c...\u8ba9\u4eba\u65e0\u6bd4\u90c1\u95f7\u7684\u4e8b\u60c5\u51fa\u73b0\u4e86:\u7f16\u8bd1\u63d0\u793a\u7684\u6240\u6709\u9519\u8bef\u884c\u90fd\u4e0d\u53ef\u80fd\u6709\u9519\u8bef\u51fa\u73b0.\u5176\u5b9e\u8fd9\u6700\u53ef\u80fd\u662f\u4f60\u5728.h\u6587\u4ef6\u58f0\u660e\u5916\u90e8\u53d8\u91cf\u6216\u8005\u51fd\u6570\u65f6,\u6ca1\u6709\u5728\u58f0\u660e\u8bed\u53e5\u7684\u6700\u540e\u52a0\u5206\u53f7!\u5982\u679c\u4f60\u6709\u5f88\u591a\u6a21\u5757,\u5982main.c,lcd.c,key.c...\u6709\u5f88\u591a\u5934\u6587\u4ef6,\u5982lcd.h,key.h,\u82e5\u662f\u5728lcd.h\u6587\u4ef6\u58f0\u660e\u51fd\u6570\u65f6\u6ca1\u6709\u52a0\u5206\u53f7,\u90a3\u4e48\u8fd9\u79cd\u9519\u8bef\u53ef\u80fd\u5b9a\u4e3a\u5230main.c\u4e2d,\u6240\u4ee5\u8981\u68c0\u67e5\u6240\u6709\u5934\u6587\u4ef6.<\/p>\n \n\t\u89e3\u51b3:\u4ed4\u7ec6\u68c0\u67e5.h\u6587\u4ef6,\u5c06\u5206\u53f7\u8865\u4e0a.<\/p>\n \n\tError: L6200E:<\/p>\n \n\t3. Error: L6200E: Symbol flagu multiply defined (by uart<\/u>0.o and main.o).<\/p>\n \n\t\u63cf\u8ff0:\u53d8\u91cf(\u4e5f\u662f\u4e00\u79cd\u7b26\u53f7)flagu\u591a\u5904\u5b9a\u4e49(\u5728uart0.c\u4e2d\u548cmain.c\u90fd\u5b9a\u4e49\u4e86).\u901a\u5e38\u9519\u5728\u5168\u5c40\u53d8\u91cf\u5b9a\u4e49\u91cd\u590d.\u6bd4\u5982:\u5728main.c\u4e2d\u5b9a\u4e49\u5168\u5c40\u53d8\u91cfflagu:<\/p>\n \n\tuint8 flagu=0;<\/p>\n \n\t\u5728uart0.c\u4e2d\u4e5f\u7528\u5230\u8be5\u53d8\u91cf,\u4e8e\u662f\u58f0\u660e\u6b64\u53d8\u91cf,\u6211\u901a\u5e38\u90fd\u662f\u5148\u590d\u5236\u5b9a\u4e49\u7684\u53d8\u91cf\u518d\u5728\u53d8\u91cf\u524d\u9762\u52a0\u5173\u952e\u5b57extern\u4fee\u9970:<\/p>\n \n\textern uint8 flagu=0;<\/p>\n \n\t\u7136\u540e\u7f16\u8bd1,\u5c31\u4f1a\u51fa\u73b0\u4e0a\u9762\u7684\u8fde\u63a5\u9519\u8bef,\u539f\u56e0\u5728\u4e8e,\u6211\u5728uart0.c\u4e2d\u662f\u53c8\u5b9a\u4e49\u4e86\u4e00\u4e2a\u53d8\u91cf,\u800c\u4e0d\u662f\u58f0\u660e\u53d8\u91cf,\u56e0\u4e3a\u6211\u7ed9\u53d8\u91cf\u8d4b\u4e86\u521d\u503c"flagu=0",\u8fd9\u6837\u5c31\u91cd\u590d\u5b9a\u4e49\u4e86\u53d8\u91cfflag.\u6b63\u786e\u7684\u58f0\u660e\u65b9\u6cd5\u662f\u53bb\u6389\u8d4b\u503c\u90e8\u5206:<\/p>\n \n\textern uint8 flagu;<\/p>\n \n\t\u89e3\u51b3\u529e\u6cd5:\u627e\u5230\u91cd\u590d\u5b9a\u4e49\u7684\u53d8\u91cf,\u770b\u60c5\u51b5\u4fee\u6539\u4e00\u5904.<\/p>\n \n\terror: #159:<\/p>\n \n\t4.error: #159: declaration is incompatible with previous "wr_lcd" (declared at line 40)<\/p>\n \n\t\u63cf\u8ff0:\u5728wr_lcd\u51fd\u6570\u8fd8\u6ca1\u6709\u58f0\u660e\u4e4b\u524d\u5c31\u5df2\u7ecf\u4f7f\u7528\u4e86.\u591a\u51fa\u73b0\u5728\u4e24\u79cd\u60c5\u51b5:\u7b2c\u4e00\u79cd,wr_lcd\u51fd\u6570\u4f53\u8fd8\u6ca1\u6709\u5199,\u5c31\u5df2\u7ecf\u7528\u5230\u4e86\u5b83,\u8fd9\u79cd\u60c5\u51b5\u591a\u51fa\u73b0\u5728\u5199\u4e00\u4e2a\u7a0b\u5e8f\u7684\u5927\u4f53\u7ed3\u6784\u4e2d,\u53ea\u662f\u7b80\u5355\u5199\u4e00\u4e0b\u6846\u67b6.\u7b2c\u4e8c\u79cd\u60c5\u51b5\u6bd4\u8f83\u5e38\u89c1,\u51fd\u6570a\u8c03\u7528\u51fd\u6570b,\u4f46\u51fd\u6570b\u7684\u51fd\u6570\u4f53\u5728\u51fd\u6570a\u7684\u4e0b\u9762:<\/p>\n \n\tvoid a(void) \/\/\u51fd\u6570a\u7684\u5b9e\u4f53<\/p>\n \n\t{<\/p>\n \n\tb(); \/\/\u8c03\u7528\u51fd\u6570b<\/p>\n \n\t}<\/p>\n \n\tvoid b(void) \/\/\u51fd\u6570b\u7684\u5b9e\u4f53<\/p>\n \n\t{<\/p>\n \n\t...<\/p>\n \n\t}<\/p>\n \n\t\u8fd9\u6837\u5982\u679c\u70b9\u7f16\u8bd1,\u5c31\u4f1a\u4ea7\u751ferror: #159\u7684\u9519\u8bef,\u56e0\u4e3a\u5f53\u51fd\u6570a\u8c03\u7528\u51fd\u6570b\u65f6,\u53d1\u73b0\u5728\u8fd9\u4e4b\u524d\u90fd\u6ca1\u6709\u51fd\u6570b\u7684\u4efb\u4f55\u58f0\u660e.<\/p>\n \n\t\u89e3\u51b3\u65b9\u6cd5:\u5728\u51fd\u6570a\u8c03\u7528\u51fd\u6570b\u4e4b\u524d,\u5bf9\u51fd\u6570b\u8fdb\u884c\u58f0\u660e,\u5982:<\/p>\n \n\tvoid b(void); \/\/\u5bf9\u51fd\u6570b\u8fdb\u884c\u58f0\u660e<\/p>\n \n\tvoid a(void) \/\/\u51fd\u6570a\u7684\u5b9e\u4f53<\/p>\n \n\t{<\/p>\n \n\tb(); \/\/\u8c03\u7528\u51fd\u6570b<\/p>\n \n\t}<\/p>\n \n\tvoid b(void) \/\/\u51fd\u6570b\u7684\u5b9e\u4f53<\/p>\n \n\t{<\/p>\n \n\t...<\/p>\n \n\t}<\/p>\n \n\terror: #137:<\/p>\n \n\t5. error: #137: expression must be a modifiable lvalue<\/p>\n \n\t\u63cf\u8ff0:\u8868\u8fbe\u5f0f\u5fc5\u987b\u662f\u4e00\u4e2a\u53ef\u4ee5\u4fee\u6539\u7684\u5de6\u503c.\u4e3b\u8981\u51fa\u73b0\u5728\u8fd9\u79cd\u73b0\u8c61:<\/p>\n \n\ta=NUM;<\/p>\n \n\tNUM\u662f\u4e00\u4e2a\u6570\u503c\u6216\u8868\u8fbe\u5f0f,a\u4e3a\u4e00\u4e2a\u53d8\u91cf,\u4f46a\u88ab\u5b9a\u4e49\u4e3a\u50cfconst\u8fd9\u79cd\u4e0d\u53ef\u66f4\u6539\u7684\u7c7b\u578b,\u5bfc\u81f4NUM\u4e0d\u80fd\u8d4b\u503c\u7ed9\u53d8\u91cfa.<\/p>\n \n\t\u89e3\u51b3\u65b9\u6cd5:\u8981\u4e48\u653e\u5f03\u8d4b\u503c,\u8981\u4e48\u4fee\u6539\u53d8\u91cf\u5c5e\u6027.<\/p>\n \n\terror: #1113:<\/p>\n \n\t\u6298\u817e\u4e86\u5927\u534a\u5929\uff0c\u624d\u641e\u660e\u767d\u4e00\u4e2a\u7a7a\u64cd\u4f5c\u7684\u6307\u4ee4<\/p>\n \n\t\u5148\u5728\u7f51\u4e0a\u67e5\u6709\u7684\u8bf4\u662f__asm{NOP;}\uff0c\u4eceintrins.h\u91cc\u8c03\u7528\uff0c\u53ef\u7284\u89d2\u65ee\u65ef\u5168\u627e\u4e86\uff0c\u4e5f\u6ca1\u770b\u5230\u4ec0\u4e48intrint.h\u7684\u6587\u4ef6\u3002\u5982\u679c\u76f4\u63a5\u7528\uff0c\u5c31\u51fa\u73b0error: #1113: Inline assembler not permitted when generating Thumb code<\/p>\n \n\t\u6700\u540e\u641c\u7d22\u8fd9\u6761\u9519\u8bef\uff0c\u77e5\u9053\u662f\u56e0\u4e3a__asm("\u6307\u4ee4");\u8fd9\u79cd\u8bed\u6cd5\u662f\u5185\u8054\u6c47\u7f16(inline assembly)\u7684\u8bed\u6cd5\u3002\u800cRMDK\u4e0b\uff0c\u5185\u8054\u6c47\u7f16\u4ec5\u652f\u6301ARM\u6c47\u7f16\u8bed\u8a00\uff0c\u4e0d\u652f\u6301Thumb\u6216\u8005Thumb-2\u6c47\u7f16\u8bed\u8a00;\u4f46\u5185\u5d4c\u6c47\u7f16\u5668\u652f\u6301Thumb\u548cThumb-2\u3002<\/p>\n \n\t__asm\u653e\u5230\u4e00\u4e2a\u5355\u72ec\u7684\u5b50\u51fd\u6570\u518d\u88ab\u8c03\u7528\u5c31\u6ca1\u95ee\u9898\u4e86<\/p>\n \n\t\u5982\u4e0b\uff1a<\/p>\n \n\t__asm void nop(void)<\/p>\n \n\t{<\/p>\n \n\tNOP<\/p>\n \n\t}<\/p>\n \n\t\u7136\u540e\u5728\u4e4b\u540e\u7684C\u4ee3\u7801\u4e2d\u8c03\u7528\u8be5\u51fd\u6570\uff1a<\/p>\n \n\tvoid main()<\/p>\n \n\t{<\/p>\n \n\t...<\/p>\n \n\tnop();<\/p>\n \n\t...<\/p>\n \n\t}<\/p>\n","protected":false},"excerpt":{"rendered":" .error: #18: 6.error: #18: expec te d a ) \u5982\u679c\u662f\u51fa\u73b0\u5728c\u6587\u4ef6\u4e2d, \u591a\u534a\u662f\u56e0\u4e3a\u5c11\u4e86\u4e00\u4e2a),\u6216\u8005\u9519\u8bef\u884c\u6709\u7f16\u8bd1\u5668\u4e0d\u8bc6\u522b\u7684\u5b57\u7b26 \u5982\u679c\u51fa\u73b0\u5728\u5934\u6587\u4ef6\u4e2d,\u9519\u8bef\u884c\u53c8\u662f\u4e00\u4e2a\u51fd\u6570\u58f0\u660e,\u591a\u534a\u662f\u56e0\u4e3a\u5728\u51fd\u6570\u58f0\u660e\u4e2d<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[14],"tags":[],"_links":{"self":[{"href":"http:\/\/www.szryc.com\/index.php?rest_route=\/wp\/v2\/posts\/1435"}],"collection":[{"href":"http:\/\/www.szryc.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.szryc.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.szryc.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.szryc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1435"}],"version-history":[{"count":0,"href":"http:\/\/www.szryc.com\/index.php?rest_route=\/wp\/v2\/posts\/1435\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.szryc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1435"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.szryc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1435"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.szryc.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1435"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}