Original Address:Error C4430: Missing type descriptor-assumed to be int. Note: C + + does not support the default int
Tonyc:evanworkspace11netwowkippack.h: Error C2146: Syntax errors: Missing ";" (in front of the identifier "Nsourport")c:evanworkspace11netwowkippack.h: Error C4430: Missing type specifier-assumed to be int. Note: C + + does not support the default intc:evanworkspace11netwowkippack.h: Error C4430: Missing type specifier-assumed to be int. Note: C + + does not support the default intc:evanworkspace11netwowkippack.h (Wuyi): Error C2146: syntax error: Missing ";" (in front of the identifier "Ndestport") c:evanworkspace11netwowkippack.h (Wuyi): Error C4430: Missing type specifier-assumed int. Note: C + + does not support the default int
Summed up, there are mainly the following reasons:
1. (This situation often occurs in large projects) if there are two classes of header files A.h and b.h, there is a statement in A.H that: #include "b.h", there is a statement in the B.h file: #include "a.h" and have another class object in one class Then there will be such a mistake.
2. There is no header file that contains the class to be defined.
3. The macro definition is less in the project, causing the header file to be duplicated or the corresponding macro to be unrecognized.
4. When there are multiple headers, sequential write-back can also lead to related errors, which are simply implicit in the precompiled statements in the header file.
e.g
#include <stdio.h>
#include <Windows.h>
#include <WinCrypt.h>
#include <string.h>
If you write the second and third counter, a macro definition is called by # If, and a similar error occurs.
Transferred from: http://mfvan.blog.163.com/blog/static/58895190201023042012727/
Error C4430: Missing type descriptor-assumed int