|
发表于 2011-6-9 22:33:56
|
显示全部楼层
回复【23楼】shaolin
回复【16楼】rigol_fan 西门吹雪
楼主,为什么1.3。1中lm3s的程序编译过不了。包括example下的程序我编译了几个也都是有错误。
本来对rtt很感兴趣的,结果受到打击我又换回ucos
-----------------------------------------------------------------------
哪个版本?是否有具体点的信息呢?
-----------------------------------------------------------------------
E:\RT_SVN\examples\3_networking_goahead_websrv工程的编译结果如下
Build target 'RT-Thread-LM3S'
compiling application.c...
compiling board.c...
compiling startup.c...
startup.c(98): warning: #223-D: function "eth_system_device_init" declared implicitly
startup.c: eth_system_device_init();
startup.c: ^
startup.c(101): warning: #223-D: function "rt_hw_luminaryif_init" declared implicitly
startup.c: rt_hw_luminaryif_init();
startup.c: ^
startup.c: startup.c: 2 warnings, 0 errors
compiling led.c...
led.c(20): warning: #550-D: variable "dummy" was set but never used
led.c: int dummy;
led.c: ^
led.c: led.c: 1 warning, 0 errors
compiling luminaryif.c...
luminaryif.c(123): warning: #550-D: variable "result" was set but never used
luminaryif.c: rt_err_t result;
luminaryif.c: ^
luminaryif.c(430): warning: #550-D: variable "result" was set but never used
luminaryif.c: rt_err_t result;
luminaryif.c: ^
luminaryif.c: luminaryif.c: 2 warnings, 0 errors
compiling sdcard.c...
sdcard.c(771): error: #136: struct "rt_device" has no field "private"
sdcard.c: sdcard_device.private = RT_NULL;
sdcard.c: ^
sdcard.c(568): warning: #177-D: function "sdcard_ioctl" was declared but never referenced
sdcard.c: DRESULT sdcard_ioctl (
sdcard.c: ^
sdcard.c: sdcard.c: 1 warning, 1 error
compiling ftpd.c...
compiling rtc.c...
rtc.c(22): warning: #550-D: variable "time" was set but never used
rtc.c: rt_time_t *time;
rtc.c: ^
rtc.c(54): error: #136: struct "rt_device" has no field "private"
rtc.c: rtc.private = RT_NULL;
rtc.c: ^
rtc.c: rtc.c: 1 warning, 1 error
compiling clock.c...
compiling device.c...
compiling idle.c...
compiling ipc.c...
compiling irq.c...
compiling kservice.c...
compiling mem.c...
compiling mempool.c...
compiling object.c...
compiling scheduler.c...
compiling thread.c...
compiling timer.c...
compiling cpu.c...
compiling fault.c...
compiling interrupt.c...
compiling serial.c...
..\..\rt-thread\lm3s\serial.c(332): error: #136: struct "rt_device" has no field "private"
..\..\rt-thread\lm3s\serial.c: serial->parent.private = RT_NULL;
..\..\rt-thread\lm3s\serial.c: ^
..\..\rt-thread\lm3s\serial.c: ..\..\rt-thread\lm3s\serial.c: 0 warnings, 1 error
compiling stack.c...
assembling context_rvds.S...
assembling fault_rvds.S...
assembling start_rvds.S...
compiling cmd.c...
compiling finsh_compiler.c...
compiling finsh_error.c...
compiling finsh_heap.c...
compiling finsh_init.c...
compiling finsh_node.c...
compiling finsh_ops.c...
compiling finsh_parser.c...
compiling finsh_token.c...
compiling finsh_var.c...
compiling finsh_vm.c...
compiling shell.c...
compiling symbol.c...
compiling api_lib.c...
compiling api_msg.c...
compiling err.c...
compiling netbuf.c...
compiling netdb.c...
compiling netifapi.c...
compiling sockets.c...
compiling tcpip.c...
compiling sys_arch.c...
compiling sys_arch_init.c...
compiling dhcp.c...
compiling dns.c...
compiling init.c...
compiling memp.c...
compiling netif.c...
compiling pbuf.c...
compiling raw.c...
compiling stats.c...
compiling sys.c...
compiling tcp.c...
compiling tcp_in.c...
compiling tcp_out.c...
compiling udp.c...
compiling asn1_dec.c...
compiling asn1_enc.c...
compiling mib2.c...
compiling mib_structs.c...
compiling msg_in.c...
compiling msg_out.c...
compiling autoip.c...
compiling icmp.c...
compiling igmp.c...
compiling inet.c...
compiling inet_chksum.c...
compiling ip.c...
compiling ip_addr.c...
compiling ip_frag.c...
compiling etharp.c...
compiling ethernetif.c...
compiling loopif.c...
compiling slipif.c...
compiling auth.c...
compiling chap.c...
compiling chpms.c...
compiling fsm.c...
compiling ipcp.c...
compiling lcp.c...
compiling magic.c...
compiling md5.c...
compiling pap.c...
compiling ppp.c...
compiling ppp_oe.c...
compiling randm.c...
compiling vj.c...
compiling ff.c...
compiling dfs_elm.c...
compiling dfs.c...
compiling dfs_file.c...
compiling dfs_fs.c...
compiling dfs_posix.c...
compiling _misc.c...
GoAhead\_misc.c(689): warning: #223-D: function "atoi" declared implicitly
GoAhead\_misc.c: return gatoi(s);
GoAhead\_misc.c: ^
GoAhead\_misc.c: GoAhead\_misc.c: 1 warning, 0 errors
compiling asp.c...
compiling balloc.c...
compiling base64.c...
GoAhead\base64.c(117): warning: #550-D: variable "x" was set but never used
GoAhead\base64.c: int x, i, j, shift;
GoAhead\base64.c: ^
GoAhead\base64.c: GoAhead\base64.c: 1 warning, 0 errors
compiling default.c...
compiling ejlex.c...
GoAhead\ejlex.c(216): warning: #550-D: variable "inq" was set but never used
GoAhead\ejlex.c: ringq_t *inq, *tokq;
GoAhead\ejlex.c: ^
GoAhead\ejlex.c(641): warning: #550-D: variable "len" was set but never used
GoAhead\ejlex.c: int c, len;
GoAhead\ejlex.c: ^
GoAhead\ejlex.c: GoAhead\ejlex.c: 2 warnings, 0 errors
compiling ejparse.c...
compiling emfdb.c...
GoAhead\emfdb.c(240): warning: #550-D: variable "nColumns" was set but never used
GoAhead\emfdb.c: int tid, nRows, nColumns, column;
GoAhead\emfdb.c: ^
GoAhead\emfdb.c(402): warning: #550-D: variable "nColumns" was set but never used
GoAhead\emfdb.c: int nRet, tid, nRows, nColumns;
GoAhead\emfdb.c: ^
GoAhead\emfdb.c: GoAhead\emfdb.c: 2 warnings, 0 errors
compiling form.c...
compiling h.c...
compiling handler.c...
compiling main.c...
compiling mime.c...
compiling page.c...
compiling ringq.c...
compiling rom.c...
compiling security.c...
GoAhead\security.c(59): warning: #550-D: variable "type" was set but never used
GoAhead\security.c: char_t *type, *userid, *password, *accessLimit;
GoAhead\security.c: ^
GoAhead\security.c: GoAhead\security.c: 1 warning, 0 errors
compiling sock.c...
GoAhead\sock.c(264): warning: #111-D: statement is unreachable
GoAhead\sock.c: return 0;
GoAhead\sock.c: ^
GoAhead\sock.c: GoAhead\sock.c: 1 warning, 0 errors
compiling sockGen.c...
..\..\rt-thread\lwip\src\include\lwip/arch.h(85): warning: #47-D: incompatible redefinition of macro "ENOMEM" (declared at line 121 of "D:\Program Files\Keil_ARM_412\ARM\RV31\INC\errno.h")
..\..\rt-thread\lwip\src\include\lwip/arch.h: #define ENOMEM 12 /* Out of memory */
..\..\rt-thread\lwip\src\include\lwip/arch.h: ^
..\..\rt-thread\lwip\src\include\lwip/arch.h(95): warning: #47-D: incompatible redefinition of macro "EINVAL" (declared at line 120 of "D:\Program Files\Keil_ARM_412\ARM\RV31\INC\errno.h")
..\..\rt-thread\lwip\src\include\lwip/arch.h: #define EINVAL 22 /* Invalid argument */
..\..\rt-thread\lwip\src\include\lwip/arch.h: ^
..\..\rt-thread\lwip\src\include\lwip/arch.h(106): warning: #47-D: incompatible redefinition of macro "EDOM" (declared at line 76 of "D:\Program Files\Keil_ARM_412\ARM\RV31\INC\errno.h")
..\..\rt-thread\lwip\src\include\lwip/arch.h: #define EDOM 33 /* Math argument out of domain of func */
..\..\rt-thread\lwip\src\include\lwip/arch.h: ^
..\..\rt-thread\lwip\src\include\lwip/arch.h(107): warning: #47-D: incompatible redefinition of macro "ERANGE" (declared at line 87 of "D:\Program Files\Keil_ARM_412\ARM\RV31\INC\errno.h")
..\..\rt-thread\lwip\src\include\lwip/arch.h: #define ERANGE 34 /* Math result not representable */
..\..\rt-thread\lwip\src\include\lwip/arch.h: ^
..\..\rt-thread\lwip\src\include\lwip/arch.h(159): warning: #47-D: incompatible redefinition of macro "EILSEQ" (declared at line 100 of "D:\Program Files\Keil_ARM_412\ARM\RV31\INC\errno.h")
..\..\rt-thread\lwip\src\include\lwip/arch.h: #define EILSEQ 84 /* Illegal byte sequence */
..\..\rt-thread\lwip\src\include\lwip/arch.h: ^
GoAhead\sockGen.c(343): warning: #550-D: variable "sp" was set but never used
GoAhead\sockGen.c: socket_t *sp;
GoAhead\sockGen.c: ^
GoAhead\sockGen.c(375): warning: #167-D: argument of type "int *" is incompatible with parameter of type "u32_t *"
GoAhead\sockGen.c: if ((newSock = accept(sp->sock, (struct sockaddr *) &addr, (int *) &len)) < 0) {
GoAhead\sockGen.c: ^
GoAhead\sockGen.c(468): warning: #167-D: argument of type "int *" is incompatible with parameter of type "u32_t *"
GoAhead\sockGen.c: bytesRead = recvfrom(sp->sock, buf, toRead, 0,
GoAhead\sockGen.c: ^
GoAhead\sockGen.c(971): warning: #550-D: variable "flag" was set but never used
GoAhead\sockGen.c: unsigned long flag;
GoAhead\sockGen.c: ^
GoAhead\sockGen.c(972): warning: #550-D: variable "iflag" was set but never used
GoAhead\sockGen.c: int iflag;
GoAhead\sockGen.c: ^
GoAhead\sockGen.c: GoAhead\sockGen.c: 10 warnings, 0 errors
compiling sym.c...
compiling uemf.c...
compiling um.c...
compiling umui.c...
GoAhead\umui.c(233): warning: #550-D: variable "row" was set but never used
GoAhead\umui.c: int row, nBytesSent, nBytes;
GoAhead\umui.c: ^
GoAhead\umui.c(376): warning: #550-D: variable "row" was set but never used
GoAhead\umui.c: int row, nBytesSent, nBytes;
GoAhead\umui.c: ^
GoAhead\umui.c(499): warning: #550-D: variable "row" was set but never used
GoAhead\umui.c: int row, nBytesSent, nBytes;
GoAhead\umui.c: ^
GoAhead\umui.c: GoAhead\umui.c: 3 warnings, 0 errors
compiling url.c...
compiling value.c...
compiling webs.c...
GoAhead\webs.c(834): warning: #550-D: variable "browser" was set but never used
GoAhead\webs.c: char_t *authType, *upperKey, *cp, *browser, *lp, *key, *value;
GoAhead\webs.c: ^
GoAhead\webs.c(1226): warning: #550-D: variable "sp" was set but never used
GoAhead\webs.c: sym_t *sp;
GoAhead\webs.c: ^
GoAhead\webs.c: GoAhead\webs.c: 2 warnings, 0 errors
compiling websuemf.c...
Target not created |
|