G
Guest
I'm trying to upgrade a large project from VS 6.0 to VS 2005.
After fixing a lot of things that changed (mostly sloppy coding in the
original project that VS2005 didn't allow), I got the release version to
build successfully. Unfortunately, it crashes right away when I start it.
So now I need to build the debug version. Unfortunately, the compiler gives
innumerable error messages of the sort shown below.
The #include file referenced here is included by way of <fstream> and its
subsidiary files. The original project used <fstream.h> which no longer
exists. Apparently the code syntax of my fixes satisfies the compiler, since
the release version builds successfully. So maybe there is a switch I need
to throw? But I can't find it. Searching MSDN, these newsgroups, etc.,
didn't turn up anything, but I'll be this is something that has been
discussed in the past.
Thanks in advance.
--
C Gregory
Tecmag, Inc.
Compiling...
AcqPropsDialog.cpp
d:\program files\microsoft visual studio 8\vc\include\xdebug(32) : warning
C4229: anachronism used : modifiers on data are ignored
d:\program files\microsoft visual studio 8\vc\include\xdebug(32) : error
C2365: 'operator new' : redefinition; previous definition was 'function'
d:\program files\microsoft visual studio 8\vc\include\xdebug(32) : error
C2491: 'new' : definition of dllimport data not allowed
d:\program files\microsoft visual studio 8\vc\include\xdebug(32) : error
C2078: too many initializers
d:\program files\microsoft visual studio 8\vc\include\xdebug(32) : error
C2440: 'initializing' : cannot convert from 'int' to 'void *'
Conversion from integral type to pointer type requires
reinterpret_cast, C-style cast or function-style cast
d:\program files\microsoft visual studio 8\vc\include\xdebug(32) : error
C2143: syntax error : missing ';' before '('
d:\program files\microsoft visual studio 8\vc\include\xdebug(32) : error
C2226: syntax error : unexpected type 'size_t'
d:\program files\microsoft visual studio 8\vc\include\xdebug(33) : error
C2059: syntax error : ')'
d:\program files\microsoft visual studio 8\vc\include\xdebug(36) : warning
C4229: anachronism used : modifiers on data are ignored
.....etc.....
After fixing a lot of things that changed (mostly sloppy coding in the
original project that VS2005 didn't allow), I got the release version to
build successfully. Unfortunately, it crashes right away when I start it.
So now I need to build the debug version. Unfortunately, the compiler gives
innumerable error messages of the sort shown below.
The #include file referenced here is included by way of <fstream> and its
subsidiary files. The original project used <fstream.h> which no longer
exists. Apparently the code syntax of my fixes satisfies the compiler, since
the release version builds successfully. So maybe there is a switch I need
to throw? But I can't find it. Searching MSDN, these newsgroups, etc.,
didn't turn up anything, but I'll be this is something that has been
discussed in the past.
Thanks in advance.
--
C Gregory
Tecmag, Inc.
Compiling...
AcqPropsDialog.cpp
d:\program files\microsoft visual studio 8\vc\include\xdebug(32) : warning
C4229: anachronism used : modifiers on data are ignored
d:\program files\microsoft visual studio 8\vc\include\xdebug(32) : error
C2365: 'operator new' : redefinition; previous definition was 'function'
d:\program files\microsoft visual studio 8\vc\include\xdebug(32) : error
C2491: 'new' : definition of dllimport data not allowed
d:\program files\microsoft visual studio 8\vc\include\xdebug(32) : error
C2078: too many initializers
d:\program files\microsoft visual studio 8\vc\include\xdebug(32) : error
C2440: 'initializing' : cannot convert from 'int' to 'void *'
Conversion from integral type to pointer type requires
reinterpret_cast, C-style cast or function-style cast
d:\program files\microsoft visual studio 8\vc\include\xdebug(32) : error
C2143: syntax error : missing ';' before '('
d:\program files\microsoft visual studio 8\vc\include\xdebug(32) : error
C2226: syntax error : unexpected type 'size_t'
d:\program files\microsoft visual studio 8\vc\include\xdebug(33) : error
C2059: syntax error : ')'
d:\program files\microsoft visual studio 8\vc\include\xdebug(36) : warning
C4229: anachronism used : modifiers on data are ignored
.....etc.....