Fatal error LNK1169: find one or more multi-definition symbols

Source: Internet
Author: User

Http://blog.sina.com.cn/s/blog_4baaabbb010007hu.html

Found recently with the compilation of strange problems especially attached, last week was not done! But now found himself but fell in love with him, at least now met better than ever! The problem today is fatal error LNK1169: find one or more multi-definition symbols. At first I thought it was similar to what I had encountered before, so I changed it to a precompiled form, but it didn't work, but it was a little bit. Found a lot of people's posts. One of them is a solution to the 2005, but I still try it out and find that I can, but I don't understand. On the post: Add/force/force to the Add-on option in the command-line, such as the item, properties , and so on. But it 's not that good. Later, it was said that the reason for the head file, In fact, it is not very clear. But you can't torture yourself, just think: If you define a variable in a header file, either the class member variable is either defined as a local extern or static variable, and the result is all pass!

Fatal error LNK1169: find one or more multi-definition symbols

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.