Compile error Error C2370: ' this_file ': redefinition solution

Source: Internet
Author: User
A project was previously AboutBox, and was later removed. Recently joined AboutBox, do not want to encounter the following error:
--------------------Configuration:msnlike_dll-win32 Debug--------------------
Compiling ...
MainFrm.cpp
E:/work/messangerinterface/msnlike_dll/msnlike_dll/aboutdlg.cpp: Error C2370: ' this_file ': redefinition; Different storage class
E:/work/messangerinterface/msnlike_dll/msnlike_dll/mainfrm.cpp (): See Declaration of ' This_file '
Error executing cl.exe.

MSNLIKE_DLL.DLL-1 error (s), 0 warning (s)

Careful search on the internet, found that there are few solutions, after careful investigation found that the problem is:
By mistakenly adding the following statement to the Mainfrm.cpp
#include "AboutDlg.cpp"

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.