when i compiling the S32K366 programm wiht LWIP,there are errors. It appears that the following codes caused the errors.
#define HTTPD_FSDATA_FILE "fsdata.c"
........
#include HTTPD_FSDATA_FILE
how to void the errors.
the S32DS 3.6 broblem message as below:
Description Resource Path Location Type
multiple definition of `file__404_html'; ./stacks/tcpip/lwip/src/apps/http/fs.o:C:\Users\Administrator\workspaceS32DS.3.6.1\k366lan8720\k366lan8720_M7_0_0\Debug_FLASH/../stacks/tcpip/lwip/src/apps/http/fsdata.c:324: first defined here k366lan8720_M7_0_0 line 324, external location: d:\nxp\s32ds.3.6.1\s32ds\build_tools\gcc_v10.2\gcc-10.2-arm32-eabi\arm-none-eabi\bin\real-ld.exe: .\stacks\tcpip\lwip\src\apps\http\fsdata.o:C:\Users\Administrator\workspaceS32DS.3.6.1\k366lan8720\k366lan8720_M7_0_0\stacks\tcpip\lwip\src\apps\http\fsdata.c C/C++ Problem
Description Resource Path Location Type
multiple definition of `file__404_html'; ./stacks/tcpip/lwip/src/apps/http/fs.o:C:\Users\Administrator\workspaceS32DS.3.6.1\k366lan8720\k366lan8720_M7_0_0\Debug_FLASH/../stacks/tcpip/lwip/src/apps/http/fsdata.c:324: first defined here k366lan8720_M7_0_0 line 324, external location: d:\nxp\s32ds.3.6.1\s32ds\build_tools\gcc_v10.2\gcc-10.2-arm32-eabi\arm-none-eabi\bin\real-ld.exe: .\stacks\tcpip\lwip\src\apps\http\fsdata.o:C:\Users\Administrator\workspaceS32DS.3.6.1\k366lan8720\k366lan8720_M7_0_0\stacks\tcpip\lwip\src\apps\http\fsdata.c C/C++ Problem
multiple definition of `file__img_sics_gif'; ./stacks/tcpip/lwip/src/apps/http/fs.o:C:\Users\Administrator\workspaceS32DS.3.6.1\k366lan8720\k366lan8720_M7_0_0\Debug_FLASH/../stacks/tcpip/lwip/src/apps/http/fsdata.c:316: first defined here k366lan8720_M7_0_0 line 316, external location: d:\nxp\s32ds.3.6.1\s32ds\build_tools\gcc_v10.2\gcc-10.2-arm32-eabi\arm-none-eabi\bin\real-ld.exe: .\stacks\tcpip\lwip\src\apps\http\fsdata.o:C:\Users\Administrator\workspaceS32DS.3.6.1\k366lan8720\k366lan8720_M7_0_0\stacks\tcpip\lwip\src\apps\http\fsdata.c C/C++ Problem
multiple definition of `file__index_html'; ./stacks/tcpip/lwip/src/apps/http/fs.o:C:\Users\Administrator\workspaceS32DS.3.6.1\k366lan8720\k366lan8720_M7_0_0\Debug_FLASH/../stacks/tcpip/lwip/src/apps/http/fsdata.c:332: first defined here k366lan8720_M7_0_0 line 332, external location: d:\nxp\s32ds.3.6.1\s32ds\build_tools\gcc_v10.2\gcc-10.2-arm32-eabi\arm-none-eabi\bin\real-ld.exe: .\stacks\tcpip\lwip\src\apps\http\fsdata.o:C:\Users\Administrator\workspaceS32DS.3.6.1\k366lan8720\k366lan8720_M7_0_0\stacks\tcpip\lwip\src\apps\http\fsdata.c C/C++ Problem