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

G

Guest

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 ?
 
B

Bruno van Dooren

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.
(e-mail address removed)
Remove only "_nos_pam"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top