duplicate symbol error C++

后端 未结 4 2088
感情败类
感情败类 2020-11-29 06:35

I have added some const character in my file as under. The error i get is duplicate symbol _xyz(say). What is the problem with it and how could i get out of this.



        
4条回答
  •  無奈伤痛
    2020-11-29 07:13

    Please, provide a meaningful description of the problem. What's "my file"? What "const character" are you taking about?

    For what you provided so far I can only guess that you added the above definition of xyz to a header file and then included it into several translation units. The result: object xyz got defined more than once. Hence the error.

提交回复
热议问题