"FAQ" puzzling compilation error: Error C2144:syntax error: ' Double ' should be preceded by '; ' and error C3646:

Source: Internet
Author: User
confusing compilation error: Error C2144:syntax error: ' Double ' should be preceded by '; ' and error C3646: '; ': unknown override Specifi ER

Today's programming inexplicably shows the following two compilation errors:

1>e:\ Daily Study \plsa_nmf\plsa_nmf\sutil.h: Error C3646: '; ': unknown override specifier
1>e:\ Daily Study \plsa_nmf\plsa_nmf\sutil.h: Error c2144:syntax error: ' Void ' should be preceded by ';

or Show as

1>e:\ Daily Study \plsa_nmf\plsa_nmf\query.cpp: Error C3646: '; ': unknown override specifier
1>e:\ Daily Study \plsa_nmf\plsa_nmf\query.cpp: Error c2144:syntax error: ' Double ' should is preceded by ';

It indicates that there is a problem with the 17 lines of the file Query.cpp, and that the subsequent compilation error is actually the first compilation error.

In VS2010 compiling environment, it is difficult to find out the '; ' and '; in the output compiling information. The difference.

Also, even if you see it, you can't find '; ' In the file query.cpp that the compiler indicates, and this semicolon doesn't know where it appears, and by looking at the compiled information, we

This error is in the compilation of Query.cpp, in fact, the simplest solution is to query the whole project, look at those places appear '; '

Can solve the problem quickly.

When you have not encountered or do not remember this error, you will be annoyed for a while, in fact, similar to this error, are due to the wrong format of the character. Later programming to

Pay more attention. Also, do not trust the compiler, the compiler hints can only be used as a reference, like this problem, the compiler indicates that the file is not the problem of the file,

In fact, the problem appears in the query.h of the document.

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.