473,399 Members | 3,888 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

error C2144 and C4430 when compiling anything in VC++ 2005

In VC++ from Visual Studio 2005 the following occurs: If I try to compile
anyting, even a newly created empty MFC application with 1 empty dialog, I
get the following 2 errors:

Compiling...
stdafx.cpp
c:\program files\microsoft visual studio 8\vc\include\excpt.h(33) : error
C2144: syntax error : 'int' should be preceded by ';'
c:\program files\microsoft visual studio 8\vc\include\excpt.h(33) : error
C4430: missing type specifier - int assumed. Note: C++ does not support
default-int

The same project(s) compile fine at another workstation with Visual Studio
2005 installed. Does anyone know what is going on and how this can be fixed ?
Mar 15 '06 #1
1 4291
> In VC++ from Visual Studio 2005 the following occurs: If I try to compile
anyting, even a newly created empty MFC application with 1 empty dialog, I
get the following 2 errors:

Compiling...
stdafx.cpp
c:\program files\microsoft visual studio 8\vc\include\excpt.h(33) : error
C2144: syntax error : 'int' should be preceded by ';'
c:\program files\microsoft visual studio 8\vc\include\excpt.h(33) : error
C4430: missing type specifier - int assumed. Note: C++ does not support
default-int

The same project(s) compile fine at another workstation with Visual Studio
2005 installed. Does anyone know what is going on and how this can be
fixed ?


Try to do a repair of your VS2005 install.
Some time ago someone else had a similar problem and it turned out that some
header files were
modified.

If the same project compiles without a problem on another pc then the
environment is the problem.
in that case a repair or reinstall should fix the problem.

--

Kind regards,
Bruno.
br**********************@hotmail.com
Remove only "_nos_pam"
Mar 15 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

16
by: pj | last post by:
(Was originally, probably wrongly, posted to the vc subgroup.) (This doesn't appear to be a c# problem, but a problem with a bug in the Visual Studio c# compiler, but, any help will be welcome...)...
2
by: Tommy Vercetti | last post by:
In Visual Studio .NET 2003, I do the following 1) File->New->Project 2) Visual C++ Projects->.NET->Windows Forms Application 3) Project->Add New Item->C++ File 4) Clear the new C++ file and...
3
by: John | last post by:
Hi, I am working on a legacy code. Following is a line of the code which complies with Visual C++.NET 2003 but not with Visual C++ 2005: for ( int i = 0; i < (const)(X.size()); i++ ) {}// X is...
0
by: Herman Jones | last post by:
I'm getting the following error when I build a Class Library project: Embedding manifest... Project : error PRJ0002 : Error result 1 returned from 'C:\WINDOWS\system32\cmd.exe'. It happens with...
1
by: Silena | last post by:
Hello I am programming in VC++, VS 2005. The program worked fine, but now I have this error. Previously were several errors like this, I did a reinstalation of SDK, DirectShow, OpenCV and VS2005,...
2
by: Nick | last post by:
I'm learning C++ and ran into a compile error using Visual C++ 2005 Express on the following example program (located at http://www.cplusplus.com/doc/tutorial/templates.html): // template...
0
by: yyuan168a | last post by:
I'm upgrading a VS2003 project to VS2005 but got bunch of C2039 errors in xutility.h file during compiling: :\Program Files\Microsoft Visual Studio 8\VC\include\xutility(610) : error C2039:...
2
by: 001 | last post by:
I get the following error when compiling under MS VC++: ------ Build started: Project: pract-1, Configuration: Debug Win32 ------ Compiling... pract-1.cpp Linking... atlsd.lib(atltrace.obj) :...
2
by: yalbizu | last post by:
#include <iostream> #include <string> #include <fstream> #include <iomanip> using namespace std; const int NO_OF_STUDENTS=20; struct studentType { string studentFName; string studentLName;
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.