This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Multiply Defined Error

I am getting error below while compiling http_demo example for mcbstr9.
Tried defining these three variables again in Net_config.h as

extern const U8 IP_Broadcast[IP_ADRLEN];
extern const U8 MAC_Broadcast[ETH_ADRLEN]; But getting same error again. Kindly help.

.\Obj\Http_demo.axf: Error: L6200E: Symbol IP_Broadcast multiply defined (by at_ip.o and net_config.o).
.\Obj\Http_demo.axf: Error: L6200E: Symbol MAC_Broadcast multiply defined (by at_ethernet.o and net_config.o).
.\Obj\Http_demo.axf: Error: L6200E: Symbol igmp_is_member multiply defined (by at_igmp.o and net_config.o).

Parents
  • Please make sure that your Net_Config.c version is consistent with your TCPnet library. It is not possible to mix newer configuration files with older TCPnet libraries without modifications.

    You are probably using more than 6-year old TCPnet. Newer network configuration files are cleaned and contain mainly #define macro definitions such as those in the dual-stack version:

    #define ETH0_MAC_ADDR           "1E-30-6C-A2-45-5E"
    #define ETH0_IP4_ADDR           "192.168.0.100"
    #define ETH0_IP4_MASK           "255.255.255.0"
    #define ETH0_IP4_GATEWAY        "192.168.0.254"
    #define ETH0_IP6_PRIMARY_DNS    "2001:4860:4860::8888"
    #define ETH0_IP6_SECONDARY_DNS  "2001:4860:4860::8844"
    

Reply
  • Please make sure that your Net_Config.c version is consistent with your TCPnet library. It is not possible to mix newer configuration files with older TCPnet libraries without modifications.

    You are probably using more than 6-year old TCPnet. Newer network configuration files are cleaned and contain mainly #define macro definitions such as those in the dual-stack version:

    #define ETH0_MAC_ADDR           "1E-30-6C-A2-45-5E"
    #define ETH0_IP4_ADDR           "192.168.0.100"
    #define ETH0_IP4_MASK           "255.255.255.0"
    #define ETH0_IP4_GATEWAY        "192.168.0.254"
    #define ETH0_IP6_PRIMARY_DNS    "2001:4860:4860::8888"
    #define ETH0_IP6_SECONDARY_DNS  "2001:4860:4860::8844"
    

Children
No data