Welcome to MSDN Blogs Sign in | Join | Help

VC2005 Breaking Change: No More Implicit 'int'

Original Code:

int main()
{
 const x = 0;
}

Error VC2005 issues:

sample.cpp(3) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

Code after applying the fix:

int main()
{
 const int x = 0;
}

For more details, check out http://msdn2.microsoft.com/en-us/library/ms173696.aspx

Thanks,
  Ayman Shoukry

 

Published Monday, April 24, 2006 3:34 PM by AymanS

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

No Comments

Leave a Comment

(required) 
required 
(required) 

  
Enter Code Here: Required
 
Page view tracker