2013-10-28 06:05 AM
Hello,
While trying to build thehttpserver_socket project with FreeRtos (STM32F4xx_Ethernet_Example\Project\FreeRTOS\httpserver_socket\EWARM\Project.eww) I've got the following messages:Warning[Pe047]: incompatible redefinition of macro ''EILSEQ'' (declared at line 40 of ''C:\Program Files\IAR Systems\Embedded Workbench 6.5\arm\inc\c\errno.h'') D:\STM32F4xx_Ethernet_Example\Utilities\lwip_v1.3.2\src\include\lwip\arch.h 159
Warning[Pe223]: function ''lwip_fcntl'' declared implicitly D:\STM32F4xx_Ethernet_Example\Project\FreeRTOS\httpserver_socket\src\platform\lwip_udp.c 304
Error[Pe020]: identifier ''F_GETFL'' is undefined D:\STM32F4xx_Ethernet_Example\Project\FreeRTOS\httpserver_socket\src\platform\lwip_udp.c 304
Warning[Pe223]: function ''lwip_fcntl'' declared implicitly D:\STM32F4xx_Ethernet_Example\Project\FreeRTOS\httpserver_socket\src\platform\lwip_udp.c 307
Error[Pe020]: identifier ''F_SETFL'' is undefined D:\STM32F4xx_Ethernet_Example\Project\FreeRTOS\httpserver_socket\src\platform\lwip_udp.c 307
Error[Pe020]: identifier ''ssize_t'' is undefined D:\STM32F4xx_Ethernet_Example\Project\FreeRTOS\httpserver_socket\src\platform\lwip_udp.c 466
Warning[Pe223]: function ''memset'' declared implicitly D:\STM32F4xx_Ethernet_Example\Project\FreeRTOS\httpserver_socket\src\platform\lwip_udp.c 614
Any idea how to resolve that, especially for the missing declarations?
Regards,
Fahmi
#understand-your-tools
2013-10-28 06:27 AM
It looks like it's using the includes/defines from IAR rather than the ones from within the project.
Consider how the project is set up (version of IAR?), and the search paths for the include files, and where they point, in preference to the default ones IAR might use.2013-10-28 10:10 AM
The include files are well defined. I'm using IAR 6.60
2013-10-28 10:32 AM
The include files are well defined. I'm using IAR 6.60
Evidently, yet it doesn't compile, bit strange then? Why is it loading an IAR include file and choking, explain? I assumed 6.5 (based on path), was the project created for that or 5.xx?2013-10-29 12:49 AM
The version of IAR is 6.60 although the path is 6.5. The AN doesn't state which version should be used, but from the .ewp I guess the project was build with version 6.40.
Now, this is what I really care about:D:\STM32F4xx_Ethernet_Example\Utilities\lwip_v1.3.2\src\include\lwip\arch.h 159Warning[Pe223]: function ''lwip_fcntl'' declared implicitly I can't find any trace of it in lwip_v1.3.2, but I found it in lwip v1.4.1.Thank you for your support!