Friend, I want to modify the HTTP Server Error pages , I copy the module HTTP_err.c to my project .When I try to compile the project,I get the following errors:
linking... .\out\2188pro.axf: Error: L6200E: Symbol http_err_401 multiply defined (by http_err.o and http_err.o). .\out\2188pro.axf: Error: L6200E: Symbol http_err_404 multiply defined (by http_err.o and http_err.o). .\out\2188pro.axf: Error: L6200E: Symbol http_err_501 multiply defined (by http_err.o and http_err.o). .\out\2188pro.axf: Error: L6200E: Symbol http_err_head multiply defined (by http_err.o and http_err.o). .\out\2188pro.axf: Error: L6200E: Symbol http_err_foot multiply defined (by http_err.o and http_err.o). Target not created
Ideas?
Thanks lx
So it sounds like you now have two copies of this file in your project - which will, obviously, lead to multiple (duplicate, to be precise) definitions of everything in that file!
No, it will not. If the linker resolves all the symbols from external HTTP_err object module, it does not touch the internal HTTP_err from TCPnet library.
This allows you to override the default TCPnet internal library module with modified externally provided one.