- 博客(6)
- 资源 (2)
- 收藏
- 关注
转载 View的setOnClickListener的添加方法
View的setOnClickListener的添加方法1)第一种,也是最长见的添加方法(一下都以Button为例)1 Button btn = (Button) findViewById(R.id.myButton);2 btn .setOnClickListener(new View.OnClickListener() {3 publ
2017-01-06 11:40:46 438
转载 MDK软件中解决Error: L6218E: Undefined symbol main (referred from rtentry2.o)
自己在做《ARM处理器裸机开发实战——机制而非策略》一书的流水灯实验时,出现了以下错误: ledtest.axf: Error: L6218E: Undefined symbol main (referred from rtentry2.o)错误提示为“main这个符号未定义”,网上查了一下原因,大多数是因为未加main.c文件于工程中或main单词拼写错误。然而,自己的程序并没有出现上述
2013-11-12 09:53:14 27685 1
原创 ..\common\inc;.\inc很重要
Mdk配置时:有 ..\common\inc;.\inc时-c --cpu ARM920T -D__EVAL -g -O0 --apcs=interwork -I..\common\inc -I.\inc -I "D:\keil 2440\安装文件\ARM\CMSIS\Include" -I "D:\keil 2440\安装文件\ARM\INC\Samsung" -o ".\
2013-11-12 09:47:41 775
转载 this declaration has no storage class or type specifier。。。警告什么意思
写msp430程序的时候想要将一个数组转换成字符串用串口发出去,但老是报警。。子函数如下TimerA_UART_print(){char *string;*string = tab[0]; TimerA_UART_tx(*string++);}Description Resource Path Location Type#78-D this declaration has no storage c
2013-11-12 09:29:41 8791
转载 warning: function declared implicitly错误原因
这是由于没有声明函数原型造成的。在a.c中,void main(){.....delay();....}在b.c中void delay(){}如果就只是这样的话,就会出现上面的worning的。解决办法是在b.h中写 extern void delay();然后在a.c中include "b.h
2013-11-12 09:26:53 37989 1
转载 Keil常见错误――last line of file ends without a newline原因及解决方法
时间:2012-9-24 | 点击:8327 | 打印本页 | 法律声明 | 收藏本文 | 当使用keil编译时,弹出这样的警告信息:main.c(7): warning: #1-D: last line of file ends without a newline 这个是由于在main函数的“}”后,没有加回车。 只要在main函数的“}
2013-11-12 09:14:07 6182 1
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人