C2143: syntax error c4430: The type specifier is missing-it is assumed that the int header file is not included (ambiguous for future reference)

Source: Internet
Author: User

1> E: \ latest _ carinfo _ can run _ after _ modification \ trunk \ VSS \ Inc \ ccarinfoadd. H (96): Error c2143: syntax error: ";" missing (before)
1> after E: \ newest _ carinfo _ can run _, \ trunk \ VSS \ Inc \ ccarinfoadd. H (96): Error c4430: The type specifier is missing-it is assumed to be Int. Note: C ++ does not support default int
1> after E: \ newest _ carinfo _ can run _, \ trunk \ VSS \ Inc \ ccarinfoadd. H (96): Error c4430: The type specifier is missing-it is assumed to be Int. Note: C ++ does not support default int

 

When the project is large and involves many projects, my current experience is. objects defined in h can be included in stdafx. H (not included in. h, # include "stdafx in CPP. H ", which can be automatically identified in the header file ):

 

 

 

// Stdafx. h: contains files in the standard system,
// Or frequently used but rarely changed
// Project-specific include files

# Pragma once

# Ifndef vc_extralean
# Define vc_extralean // exclude rarely used information from the Windows Header
# Endif

// If you must target a platform that is located before the platform specified below, modify the following definition.
// For the latest information about the corresponding values of different platforms, refer to msdn.
# Ifndef winver // allows you to use features specific to Windows XP or later.
# Define winver 0x0501 // change this value to the appropriate value for other Windows versions.
# Endif

# Ifndef _ win32_winnt // allows you to use features specific to Windows XP or later.
# DEFINE _ win32_winnt 0x0501 // change the value to the corresponding value for other Windows versions.
# Endif

# Ifndef _ win32_windows // allows use of features specific to Windows 98 or later.
# DEFINE _ win32_windows 0x0410 // change this value to an appropriate value to specify Windows ME or a later version as the target.
# Endif

# Ifndef _ win32_ie // allows you to use features specific to IE 6.0 or later.
# DEFINE _ win32_ie 0x0600 // change the value to the corresponding value to apply to other IE versions.
# Endif

# DEFINE _ atl_cstring_explicit_constructors // some cstring constructors will be explicitly

# Include <afxwin. h> // MFC Core Components and standard components
# Include <afxext. h> // MFC extension

# Ifndef _ afx_no_ole_support
# Include <afxole. h> // MFC Ole class
# Include <afxodlgs. h> // mfc ole Dialog Box class
# Include <afxdisp. h> // MFC automation class
# Endif // _ afx_no_ole_support

# Ifndef _ afx_no_db_support
# Include <afxdb. h> // mfc odbc database class
# Endif // _ afx_no_db_support

# Ifndef _ afx_no_dao_support
# Include <afxdao. h> // mfc dao Database Class
# Endif // _ afx_no_dao_support

# Ifndef _ afx_no_ole_support
# Include <afxdtctl. h> // MFC supports Internet Explorer 4 public controls
# Endif
# Ifndef _ afx_no_afxcmn_support
# Include <afxcmn. h> // MFC support for Windows public controls
# Endif // _ afx_no_afxcmn_support
/* # Include <tchar. h> */
// # Include "windows. H"
# Include "ivss_corelibrary.h"
# Pragma comment (Lib, "vss_core.lib ")

// # Include "ivss_mysqllibrary.h"
// # Pragma comment (Lib, "vss_mysql.lib ")

# Include "ivss_carinfolibrary.h"
# Pragma comment (Lib, "vss_carinfo.lib ")

 

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.