[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-devel] Compilation Errors in the Updated Code (IPv6)
From: |
Anil M |
Subject: |
[lwip-devel] Compilation Errors in the Updated Code (IPv6) |
Date: |
Thu, 17 Feb 2011 01:55:53 -0800 (PST) |
Hi All,
I have taken lwip-1.4.0.rc1 code from VSS and applied
2011-01-18_IPv6_for_LwIP_1_4_0_RC1_patch.zip on top of the code.
When i am trying to compile the code in Microsoft Visual Studio 2008, with
LWIP_IPV6, i am facing the below errors.
1. src\core\snmp\mib2.c
1>mib2.c
1>..\..\..\src\core\snmp\mib2.c(1798) : warning C4133: 'function' :
incompatible types - from '*' to 'ip_addr_t *'
1>..\..\..\src\core\snmp\mib2.c(1851) : warning C4133: 'function' :
incompatible types - from '*' to 'ip_addr_t *'
1>..\..\..\src\core\snmp\mib2.c(1860) : error C2039: 'addr' : is not a
member of '<unnamed-tag>'
1> F:\Working\Rakesh\LWIP_DIR\src\include\lwip/udp.h(114) : see
declaration of '<unnamed-tag>'
1>..\..\..\src\core\snmp\mib2.c(1860) : error C2039: 'addr' : is not a
member of '<unnamed-tag>'
1> F:\Working\Rakesh\LWIP_DIR\src\include\lwip/udp.h(114) : see
declaration of '<unnamed-tag>'
1>..\..\..\src\core\snmp\mib2.c(3892) : error C2039: 'addr' : is not a
member of '<unnamed-tag>'
1> F:\Working\Rakesh\LWIP_DIR\src\include\lwip/udp.h(114) : see
declaration of '<unnamed-tag>'
I am able to fix this problem, please check the below code changes:
line 1798: snmp_iptooid(&pcb->local_ip.ip4, &udpidx[0]);
line 1851: snmp_iptooid(&pcb->local_ip.ip4, &udpidx[0]);
line 1860: if (ip_addr_cmp(&npcb->local_ip.ip4, &pcb->local_ip.ip4) &&
line 3892: !(ip_addr_cmp(&pcb->local_ip.ip4, &ip) &&
2. src\api\sockets.c
1>sockets.c
1>..\..\..\src\api\sockets.c(464) : error C2121: '#' : invalid character :
possibly the result of a macro expansion
1>..\..\..\src\api\sockets.c(464) : error C2059: syntax error : 'if'
1>..\..\..\src\api\sockets.c(464) : error C2121: '#' : invalid character :
possibly the result of a macro expansion
1>..\..\..\src\api\sockets.c(464) : error C2121: '#' : invalid character :
possibly the result of a macro expansion
1>..\..\..\src\api\sockets.c(464) : error C2059: syntax error : '}'
1>..\..\..\src\api\sockets.c(547) : error C2121: '#' : invalid character :
possibly the result of a macro expansion
1>..\..\..\src\api\sockets.c(547) : error C2059: syntax error : 'if'
1>..\..\..\src\api\sockets.c(547) : error C2121: '#' : invalid character :
possibly the result of a macro expansion
1>..\..\..\src\api\sockets.c(547) : error C2121: '#' : invalid character :
possibly the result of a macro expansion
1>..\..\..\src\api\sockets.c(547) : error C2059: syntax error : '}'
1>..\..\..\src\api\sockets.c(961) : error C2121: '#' : invalid character :
possibly the result of a macro expansion
1>..\..\..\src\api\sockets.c(961) : error C2059: syntax error : 'if'
1>..\..\..\src\api\sockets.c(961) : error C2121: '#' : invalid character :
possibly the result of a macro expansion
1>..\..\..\src\api\sockets.c(961) : error C2121: '#' : invalid character :
possibly the result of a macro expansion
1>..\..\..\src\api\sockets.c(961) : error C2059: syntax error : '}'
I have found the problem, the problem is with LWIP_ERROR statement in the
above lines. LWIP_ERROR macro will take 3 arguments, but the statement in
the above lines has 4 arguments.
Please let me know the fix for this problem.
Thanks for your support.
Regards,
Anil Kumar Maguluri
--
View this message in context:
http://old.nabble.com/Compilation-Errors-in-the-Updated-Code-%28IPv6%29-tp30948154p30948154.html
Sent from the lwip-devel mailing list archive at Nabble.com.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [lwip-devel] Compilation Errors in the Updated Code (IPv6),
Anil M <=